# GetEnumerator()

> Returns an enumerator over the elements of the list.

## Definition

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

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

### Returns

| Type                                                                                                      | Description                                  |
| --------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| [Enumerator](/engine/6000.7/script-reference/unity/collections/lowlevel/unsafe/unsafelist1/enumerator.md) | An enumerator over the elements of the list. |
