1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 01:18:02 +02:00

Allow <=> on bools

This commit is contained in:
Brian Fiete 2021-12-28 09:44:25 -05:00
parent 3570d2a87b
commit 252fe13a5d
3 changed files with 16 additions and 4 deletions

View file

@ -17,6 +17,11 @@ namespace System
strBuffer.Append(((bool)this) ? TrueString : FalseString);
}
public static int operator<=>(Boolean a, Boolean b)
{
return (SelfBase)a <=> (SelfBase)b;
}
public int GetHashCode()
{
return ((bool)this) ? 1 : 0;