CapyKit/Documentation/Help/M_CapyKit_PropertyComparer_2_GetHashCode.md
2024-09-04 19:31:43 -05:00

52 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GetHashCode(T) Method
Returns a hash code for the specified object.
## Definition
**Namespace:** <a href="N_CapyKit.md">CapyKit</a>
**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
<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
<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>