# MoveNext()

> Advances the enumerator to the next key-value pair.

## 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>.KeyValueEnumerator.Current](/engine/6000.7/script-reference/unity/collections/nativeparallelmultihashmap2/keyvalueenumerator/current.md) is valid to read after the call. |
