mirror of
https://gitlab.com/Deukhoofd/DeukBot4.git
synced 2026-04-04 03:30:05 +00:00
Work on permission system, along with initial work on database(postgres) system
This commit is contained in:
15
DeukBot4/Utilities/LongExtensions.cs
Normal file
15
DeukBot4/Utilities/LongExtensions.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace DeukBot4.Utilities
|
||||
{
|
||||
public static class LongExtensions
|
||||
{
|
||||
public static ulong ToUlong(this long l)
|
||||
{
|
||||
return unchecked((ulong)(l - long.MinValue));
|
||||
}
|
||||
|
||||
public static long ToLong(this ulong l)
|
||||
{
|
||||
return unchecked((long)l + long.MinValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user