# MoveNext()

> Advances the enumerator to the next value of the key.

## Definition

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

```csharp
public bool MoveNext()
```

### Returns

| Type                                                          | Description                                                                                                                                                                                                  |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if [NativeParallelMultiHashMap\<TKey, TValue>.Enumerator.Current](/engine/6000.7/script-reference/unity/collections/nativeparallelmultihashmap2/enumerator/current.md) is valid to read after the call. |
