HashCodeUtility.GetPersistentHashCode method (1 of 3)

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.

Return Value

A hash code for the specified Boolean.

See Also


HashCodeUtility.GetPersistentHashCode method (2 of 3)

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.

Return Value

A hash code for the specified Int32.

Remarks

Based on “Robert Jenkins’ 32 bit integer hash function” at http://www.concentric.net/~Ttwang/tech/inthash.htm

See Also


HashCodeUtility.GetPersistentHashCode method (3 of 3)

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.

Return Value

A hash code for the specified Int64.

Remarks

Based on “64 bit to 32 bit Hash Functions” at http://www.concentric.net/~Ttwang/tech/inthash.htm

See Also