Gets a hash code for the specified Boolean; this hash code is guaranteed not to change in future.
public static int GetPersistentHashCode(bool value)
parameter | description |
---|---|
value | The Boolean to hash. |
A hash code for the specified Boolean.
Gets a hash code for the specified Int32; this hash code is guaranteed not to change in future.
public static int GetPersistentHashCode(int value)
parameter | description |
---|---|
value | The Int32 to hash. |
A hash code for the specified Int32.
Based on “Robert Jenkins’ 32 bit integer hash function” at http://www.concentric.net/~Ttwang/tech/inthash.htm
Gets a hash code for the specified Int64; this hash code is guaranteed not to change in future.
public static int GetPersistentHashCode(long value)
parameter | description |
---|---|
value | The Int64 to hash. |
A hash code for the specified Int64.
Based on “64 bit to 32 bit Hash Functions” at http://www.concentric.net/~Ttwang/tech/inthash.htm