# GetHashCode()

> Returns the hash code of this id.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities.Serialization](/engine/7000.0/script-reference/unity/entities/serialization.md)
* **Assembly:** UnityEngine.EntitiesModule

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

### Returns

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