Class HashCode
A utility class to aid in working with hashcodes
Inheritance
System.Object
HashCode
Namespace: Atlas
Assembly: Atlas.Runtime.dll
Syntax
public static class HashCode
Methods
| Improve this Doc View SourceCombine(Int32, Int32)
Combines 2 hash codes
Declaration
public static int Combine(int hash1, int hash2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | hash1 | |
System.Int32 | hash2 |
Returns
Type | Description |
---|---|
System.Int32 | The combined hash value |
Combine(Int32, Int32, Int32)
Combines 3 hash codes
Declaration
public static int Combine(int hash1, int hash2, int hash3)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | hash1 | |
System.Int32 | hash2 | |
System.Int32 | hash3 |
Returns
Type | Description |
---|---|
System.Int32 | The combined hash value |
Combine(Int32, Int32, Int32, Int32)
Combines 4 hash codes
Declaration
public static int Combine(int hash1, int hash2, int hash3, int hash4)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | hash1 | |
System.Int32 | hash2 | |
System.Int32 | hash3 | |
System.Int32 | hash4 |
Returns
Type | Description |
---|---|
System.Int32 | The combined hash value |
Get<T1, T2>(T1, T2)
Generates a hashcode representing the given objects
Declaration
public static int Get<T1, T2>(T1 obj1, T2 obj2)
Parameters
Type | Name | Description |
---|---|---|
T1 | obj1 | |
T2 | obj2 |
Returns
Type | Description |
---|---|
System.Int32 | The generated hashcode |
Type Parameters
Name | Description |
---|---|
T1 | |
T2 |
Get<T1, T2, T3>(T1, T2, T3)
Generates a hashcode representing the given objects
Declaration
public static int Get<T1, T2, T3>(T1 obj1, T2 obj2, T3 obj3)
Parameters
Type | Name | Description |
---|---|---|
T1 | obj1 | |
T2 | obj2 | |
T3 | obj3 |
Returns
Type | Description |
---|---|
System.Int32 | The generated hashcode |
Type Parameters
Name | Description |
---|---|
T1 | |
T2 | |
T3 |
Get<T1, T2, T3, T4>(T1, T2, T3, T4)
Generates a hashcode representing the given objects
Declaration
public static int Get<T1, T2, T3, T4>(T1 obj1, T2 obj2, T3 obj3, T4 obj4)
Parameters
Type | Name | Description |
---|---|---|
T1 | obj1 | |
T2 | obj2 | |
T3 | obj3 | |
T4 | obj4 |
Returns
Type | Description |
---|---|
System.Int32 | The generated hashcode |
Type Parameters
Name | Description |
---|---|
T1 | |
T2 | |
T3 | |
T4 |