# FixedString512Bytes.Enumerator

> An enumerator over the characters (not bytes) of a FixedString512Bytes.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Collections](/engine/6000.7/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.ManagedKernelModule
* **Implements:** [IEnumerator](https://learn.microsoft.com/dotnet/api/system.collections.ienumerator)

```csharp
public struct FixedString512Bytes.Enumerator : IEnumerator
```

## Remarks

In an enumerator's initial state, [FixedString512Bytes.Enumerator.Current](/engine/6000.7/script-reference/unity/collections/fixedstring512bytes/enumerator/current.md) is not valid to read. The first [FixedString512Bytes.Enumerator.MoveNext](/engine/6000.7/script-reference/unity/collections/fixedstring512bytes/enumerator/movenext.md) call advances the enumerator's index to the first character.

## Constructors

| Constructor                                                                                                                                   | Description                                                            |
| --------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [Enumerator(Unity.Collections.FixedString512Bytes)](/engine/6000.7/script-reference/unity/collections/fixedstring512bytes/enumerator/ctor.md) | Initializes and returns an instance of FixedString512Bytes.Enumerator. |

## Properties

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

## Methods

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