# Class AsyncStreamReaderExtensions (2.66.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.66.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.AsyncStreamReaderExtensions)
- [2.63.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.63.0/Grpc.Core.AsyncStreamReaderExtensions)
- [2.48.0](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/2.48.0/Grpc.Core.AsyncStreamReaderExtensions)

    public static class AsyncStreamReaderExtensions

Extension methods for [IAsyncStreamReader\<T\>](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IAsyncStreamReader-1).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AsyncStreamReaderExtensions

## Inherited Members

[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Grpc.Core](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core)

## Assembly

Grpc.Core.Api.dll

## Methods

### MoveNext\<T\>(IAsyncStreamReader\<T\>)

    public static Task<bool> MoveNext<T>(this IAsyncStreamReader<T> streamReader) where T : class

Advances the stream reader to the next element in the sequence, returning the result asynchronously.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `streamReader` | `https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.IAsyncStreamReader-1` The stream reader. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://learn.microsoft.com/dotnet/api/system.boolean` | Task containing the result of the operation: true if the reader was successfully advanced to the next element; false if the reader has passed the end of the sequence. |

| **Type Parameter** ||
|---|---|
| **Name** | **Description** |
| `T` | The message type. |