# NativeQueue<T>.Enumerator

> An enumerator over the values of a container.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule
* **Implements:** [IEnumerator\<T>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerator-1), [IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.ienumerator), [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct NativeQueue<T>.Enumerator : IEnumerator<T>, IEnumerator, IDisposable
```

## Remarks

In an enumerator's initial state, [NativeQueue\<T>.Enumerator.Current](/engine/6000.7/script-reference/unity/collections/nativequeue1/enumerator/current.md) is invalid. The first [NativeQueue\<T>.Enumerator.MoveNext](/engine/6000.7/script-reference/unity/collections/nativequeue1/enumerator/movenext.md) call advances the enumerator to the first value.

## Properties

| Property                                                                                        | Description        |
| ----------------------------------------------------------------------------------------------- | ------------------ |
| [Current](/engine/6000.7/script-reference/unity/collections/nativequeue1/enumerator/current.md) | The current value. |

## Methods

| Method                                                                                            | Description                                 |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------- |
| [Dispose](/engine/6000.7/script-reference/unity/collections/nativequeue1/enumerator/dispose.md)   | Does nothing.                               |
| [MoveNext](/engine/6000.7/script-reference/unity/collections/nativequeue1/enumerator/movenext.md) | Advances the enumerator to the next value.  |
| [Reset](/engine/6000.7/script-reference/unity/collections/nativequeue1/enumerator/reset.md)       | Resets the enumerator to its initial state. |
