# GetEnumerator()

> Returns an enumerator that iterates through the collection.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Properties](/engine/6000.5/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

```csharp
public PropertyCollection<TContainer>.Enumerator GetEnumerator()
```

### Returns

| Type                                                                                             | Description                                                       |
| ------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| [Enumerator](/engine/6000.5/script-reference/unity/properties/propertycollection1/enumerator.md) | An enumerator that can be used to iterate through the collection. |
