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:
parent
3570d2a87b
commit
252fe13a5d
3 changed files with 16 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue