1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 00:20:25 +02:00

Added INumeric

This commit is contained in:
Brian Fiete 2020-01-28 10:58:52 -08:00
parent 0b71897461
commit f874535a13
3 changed files with 20 additions and 5 deletions

View file

@ -16,7 +16,12 @@ namespace System
public static int operator<=>(UInt64 a, UInt64 b)
{
return (uint64)a <=> (uint64)b;
return (SelfBase)a <=> (SelfBase)b;
}
public static Self operator+(Self lhs, Self rhs)
{
return (SelfBase)lhs + (SelfBase)rhs;
}
int IHashable.GetHashCode()