# GetHashCode()

> Returns a hash code of this string.

## Definition

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

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

### Returns

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

### Remarks

Only the character bytes are included in the hash: any bytes beyond [FixedString32Bytes.Length](/engine/6000.7/script-reference/unity/collections/fixedstring32bytes/length.md) are not part of the hash.
