# SpanEnumerator Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.arcbuffer.spanenumerator/)

## GetEnumerator {#getenumerator-6d349931}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.arcbuffer.spanenumerator/methods/getenumerator-6d349931/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/ArcBufferWriter.cs#L1727)

```csharp
public readonly SpanEnumerator GetEnumerator()
```

Gets this instance as an enumerator.

### Returns

This instance.

## MoveNext {#movenext-2b9798e7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.arcbuffer.spanenumerator/methods/movenext-2b9798e7/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/ArcBufferWriter.cs#L1740-L1747)

```csharp
public bool MoveNext()
```

Advances the enumerator to the next element of the collection.

### Returns

`true` if the enumerator was successfully advanced to the next element; `false` if the enumerator has passed the end of the collection.
