# GetHashCode(T) Method Returns a hash code for the specified object. ## Definition **Namespace:** CapyKit **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.2 **C#** ``` C# public int GetHashCode( T obj ) ``` **F#** ``` F# abstract GetHashCode : obj : 'T -> int override GetHashCode : obj : 'T -> int ``` #### Parameters
  T
The Object for which a hash code is to be returned.
#### Return Value Int32 A hash code for the specified object. #### Implements IEqualityComparer(T).GetHashCode(T) ## Exceptions
ArgumentNullException The type of obj is a reference type and obj is null.
## See Also #### Reference PropertyComparer(T, U) Class GetHashCode Overload CapyKit Namespace