mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Void hashable, fixes zero or one element enum hashing
This commit is contained in:
parent
215fafac74
commit
9d1ad28323
1 changed files with 6 additions and 1 deletions
|
@ -1,10 +1,15 @@
|
|||
namespace System
|
||||
{
|
||||
struct Void : void
|
||||
struct Void : void, IHashable
|
||||
{
|
||||
public override void ToString(String strBuffer)
|
||||
{
|
||||
strBuffer.Append("void");
|
||||
}
|
||||
|
||||
public int GetHashCode()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue