Serves as a hash function for the specified object for hashing algorithms and data structures, such as a hash table.
public override int GetHashCode(TSource obj)
parameter | description |
---|---|
obj | The object for which to get a hash code. |
A hash code for the specified object.
exception | condition |
---|---|
ArgumentNullException | The type of obj is a reference type and obj is null. |