# GetHashCode()

> Returns the underlying int as a hash code for this PropertyName. Use GetHashCode to use PropertyName as keys in hash tables.

## Definition

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

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

### Returns

| Type                                                       | Description                                                |
| ---------------------------------------------------------- | ---------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The underlying int as the hash code for this PropertyName. |
