# ComputeHashCode<T>(ref T)

> Returns a hash code of this string.

## Definition

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

## ComputeHashCode\<T>(T)

```csharp
public static int ComputeHashCode<T>(this ref T fs) where T : unmanaged, INativeList<byte>, IUTF8Bytes
```

### Parameters

**** (T): A string to get a hash code of.

### Returns

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