CapyKit/Documentation/Help/M_CapyKit_PropertyComparer_2_GetHashCode.md

53 lines
1.5 KiB
Markdown
Raw Normal View History

# GetHashCode(T) Method
Returns a hash code for the specified object.
## Definition
2024-04-21 03:30:36 -05:00
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.0
**C#**
``` C#
public int GetHashCode(
T obj
)
```
**F#**
``` F#
abstract GetHashCode :
obj : 'T -> int
override GetHashCode :
obj : 'T -> int
```
#### Parameters
2024-04-21 03:30:36 -05:00
<dl><dt>  <a href="T_CapyKit_PropertyComparer_2.md">T</a></dt><dd>The <a href="https://learn.microsoft.com/dotnet/api/system.object" target="_blank" rel="noopener noreferrer">Object</a> for which a hash code is to be returned.</dd></dl>
#### Return Value
<a href="https://learn.microsoft.com/dotnet/api/system.int32" target="_blank" rel="noopener noreferrer">Int32</a>
A hash code for the specified object.
#### Implements
<a href="https://learn.microsoft.com/dotnet/api/system.collections.generic.iequalitycomparer-1.gethashcode" target="_blank" rel="noopener noreferrer">IEqualityComparer(T).GetHashCode(T)</a>
## Exceptions
<table>
<tr>
<td><a href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception" target="_blank" rel="noopener noreferrer">ArgumentNullException</a></td>
<td>The type of <em>obj</em> is a reference type and <em>obj</em> is null.</td></tr>
</table>
## See Also
#### Reference
2024-04-21 03:30:36 -05:00
<a href="T_CapyKit_PropertyComparer_2.md">PropertyComparer(T, U) Class</a>
<a href="Overload_CapyKit_PropertyComparer_2_GetHashCode.md">GetHashCode Overload</a>
<a href="N_CapyKit.md">CapyKit Namespace</a>