mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-18 08:06:04 +02:00
Moving corlib files out of "System" directory into root
This commit is contained in:
parent
4cd58262e4
commit
7dbfd15292
179 changed files with 3 additions and 0 deletions
27
BeefLibs/corlib/src/Tuple.bf
Normal file
27
BeefLibs/corlib/src/Tuple.bf
Normal file
|
@ -0,0 +1,27 @@
|
|||
namespace System
|
||||
{
|
||||
struct Tuple<T1, T2> : IHashable where T1 : IHashable where T2 : IHashable
|
||||
{
|
||||
public T1 Item1;
|
||||
public T2 Item2;
|
||||
|
||||
public this()
|
||||
{
|
||||
Item1 = default(T1);
|
||||
Item2 = default(T2);
|
||||
}
|
||||
|
||||
public this(T1 item1, T2 item2)
|
||||
{
|
||||
Item1 = item1;
|
||||
Item2 = item2;
|
||||
}
|
||||
|
||||
public int GetHashCode()
|
||||
{
|
||||
int h1 = Item1.GetHashCode();
|
||||
int h2 = Item2.GetHashCode();
|
||||
return (((h1 << 5) + h1) ^ h2);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue