mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-30 13:26:00 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
15
BeefLibs/corlib/src/System/Boolean.bf
Normal file
15
BeefLibs/corlib/src/System/Boolean.bf
Normal file
|
@ -0,0 +1,15 @@
|
|||
namespace System
|
||||
{
|
||||
struct Boolean : bool, IHashable
|
||||
{
|
||||
public override void ToString(String strBuffer)
|
||||
{
|
||||
strBuffer.Append(((bool)this) ? "true" : "false");
|
||||
}
|
||||
|
||||
int IHashable.GetHashCode()
|
||||
{
|
||||
return ((bool)this) ? 1 : 0;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue