# 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 [NativeParallelHashMap\<TKey, TValue>.Enumerator.Current](/engine/6000.7/script-reference/unity/collections/nativeparallelhashmap2/enumerator/current.md) is valid to read after the call. |
