# PropertyCollection<TContainer>.Enumerator

> An enumerator struct to enumerate all properties for the given TContainer.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Properties](/engine/6000.7/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule
* **Implements:** [IEnumerator\<IProperty\<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 PropertyCollection<TContainer>.Enumerator : IEnumerator<IProperty<TContainer>>, IEnumerator, IDisposable
```

## Properties

| Property                                                                                              | Description                                                                   |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [Current](/engine/6000.7/script-reference/unity/properties/propertycollection1/enumerator/current.md) | Gets the element in the collection at the current position of the enumerator. |

## Methods

| Method                                                                                                  | Description                                                                                       |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| [Dispose](/engine/6000.7/script-reference/unity/properties/propertycollection1/enumerator/dispose.md)   | Disposes of the underlying enumerator.                                                            |
| [MoveNext](/engine/6000.7/script-reference/unity/properties/propertycollection1/enumerator/movenext.md) | Advances the enumerator to the next element of the collection.                                    |
| [Reset](/engine/6000.7/script-reference/unity/properties/propertycollection1/enumerator/reset.md)       | Sets the enumerator to its initial position, which is before the first element in the collection. |
