HashCodeUtility.CombineHashCodes method (1 of 5)

Combines the specified hash codes.

public static int CombineHashCodes(int hashCode1)
parameter description
hashCode1 The first hash code.

Return Value

The combined hash code.

Remarks

This is a specialization of CombineHashCodes for efficiency.

See Also


HashCodeUtility.CombineHashCodes method (2 of 5)

Combines the specified hash codes.

public static int CombineHashCodes(params int[]? hashCodes)
parameter description
hashCodes An array of hash codes.

Return Value

The combined hash code.

Remarks

This method is based on the “hashword” function at http://burtleburtle.net/bob/c/lookup3.c. It attempts to thoroughly mix all the bits in the input hash codes.

See Also


HashCodeUtility.CombineHashCodes method (3 of 5)

Combines the specified hash codes.

public static int CombineHashCodes(int hashCode1, int hashCode2)
parameter description
hashCode1 The first hash code.
hashCode2 The second hash code.

Return Value

The combined hash code.

Remarks

This is a specialization of CombineHashCodes for efficiency.

See Also


HashCodeUtility.CombineHashCodes method (4 of 5)

Combines the specified hash codes.

public static int CombineHashCodes(int hashCode1, int hashCode2, int hashCode3)
parameter description
hashCode1 The first hash code.
hashCode2 The second hash code.
hashCode3 The third hash code.

Return Value

The combined hash code.

Remarks

This is a specialization of CombineHashCodes for efficiency.

See Also


HashCodeUtility.CombineHashCodes method (5 of 5)

Combines the specified hash codes.

public static int CombineHashCodes(int hashCode1, int hashCode2, int hashCode3, int hashCode4)
parameter description
hashCode1 The first hash code.
hashCode2 The second hash code.
hashCode3 The third hash code.
hashCode4 The fourth hash code.

Return Value

The combined hash code.

Remarks

This is a specialization of CombineHashCodes for efficiency.

See Also