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.GenericAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public abstract int GetHashCode(
T obj
)
Parameters
- obj
- Type: T
The object for which to get a hash code.
Return Value
Type:
Int32A hash code for the specified object.
Exceptions See Also