# GetHashCode()

> Computes a valid hash code for this UniqueStyleString.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

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

### Returns

| Type                                                       | Description                                     |
| ---------------------------------------------------------- | ----------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | A number that represents this UniqueStyleString |

### Remarks

This method returns a unique hash code for the given UniqueStyleString. The result hash has no chance of producing a collision, that is, distinct UniqueStyleStrings will always produce distinct hash codes.
