# GetHashCode()

> Gets a hash code for the current instance.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections](/engine/6000.6/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public override int GetHashCode()
```

### Returns

| Type                                                       | Description  |
| ---------------------------------------------------------- | ------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | A hash code. |
