# SpanEnumerator Methods

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

## GetEnumerator {#getenumerator-6d349931}

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

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

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

Returns an enumerator which can be used to enumerate the data referenced by this instance.

### Returns

An enumerator for the data contained in this instance.

## MoveNext {#movenext-2b9798e7}

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

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Serialization/Buffers/PooledBuffer.cs#L463-L508)

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