# GetEnumerator()

> Returns an enumerator over the key-value pairs of this hash map.

## Definition

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

```csharp
public UnsafeParallelHashMap<TKey, TValue>.Enumerator GetEnumerator()
```

### Returns

| Type                                                                                                                 | Description                                              |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| [Enumerator](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafeparallelhashmap2/enumerator.md) | An enumerator over the key-value pairs of this hash map. |
