# GetEnumerator()

> Returns an enumerator over the elements of this list.

## Definition

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

```csharp
public NativeArray<T>.Enumerator GetEnumerator()
```

### Returns

| Type       | Description                                   |
| ---------- | --------------------------------------------- |
| Enumerator | An enumerator over the elements of this list. |
