IEqualityComparer: GetHashCode

GetHashCode

Returns a hash code for the specified value.



 Public Function GetHashCode(
	  ByRef Obj As Variant ) As Long

Parameters

Obj
[ByRef] Variant. The value for which a hash code is to be returned.

Return Values

Long -  A hash code for the specified object.

Remarks

Implement this method to provide customized hash codes for values,corresponding to the customized equality comparison provided by the Equals method.

Notes to Implementers

Implementations are required to ensure that if the Equals method returns True for two values x and y, then the value returned by the GetHashCode method for x must equal the value returned for y.

See Also

Project CorLib Overview

Class IEqualityComparer Overview