Click or drag to resize
EqualityComparerTGetHashCode Method (T)
When overridden in a derived class, serves as a hash function for the specified object for hashing algorithms and data structures, such as a hash table.

Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public abstract int GetHashCode(
	T obj
)

Parameters

obj
Type: T
The object for which to get a hash code.

Return Value

Type: Int32
A hash code for the specified object.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe type of obj is a reference type and obj is null.
See Also