# ArraySegmentEnumerator Methods

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

## GetEnumerator {#getenumerator-48932931}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.arcbuffer.arraysegmentenumerator/methods/getenumerator-48932931/)

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

```csharp
public readonly ArraySegmentEnumerator GetEnumerator()
```

Gets this instance as an enumerator.

### Returns

This instance.

## MoveNext {#movenext-263030c1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.serialization/orleans.serialization.buffers.arcbuffer.arraysegmentenumerator/methods/movenext-263030c1/)

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

```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.
