# GetHashCode(T) Method Returns a hash code for the specified object. ## Definition **Namespace:** CapyKit **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0+735d7c4c91a8ae04c2d8cae4ce85ddf4909e5b7d **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