HashCode.Combine

Static Method in HashCode

Declaration

public static int Combine(int hash1, int hash2)

Description

Combines two hash codes into one unique hash.

Parameters

hash1The first hash.
hash2The second hash.

Returns

intThe combined hash code.

Overload

Declaration

public static int Combine(int hash1, int hash2, int hash3)

Description

Combines three hash codes into one unique hash.

Parameters

hash1The first hash.
hash2The second hash.
hash3The third hash.

Returns

intThe combined hash code.

Overload

Declaration

public static int Combine(int hash1, int hash2, int hash3, int hash4)

Description

Combines four hash codes into one unique hash.

Parameters

hash1The first hash.
hash2The second hash.
hash3The third hash.
hash4The fourth hash.

Returns

intThe combined hash code.