Language

AsyncEnumerable.Cast(IAsyncEnumerable) Method

Definition

Casts the elements of an IAsyncEnumerable to the specified type.

public:
generic 
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable ^ Cast(System::Collections::Generic::IAsyncEnumerable ^ source);
public static System.Collections.Generic.IAsyncEnumerable Cast(this System.Collections.Generic.IAsyncEnumerable source);
static member Cast : System.Collections.Generic.IAsyncEnumerable -> System.Collections.Generic.IAsyncEnumerable<'Result>

Public Function Cast(Of TResult) (source As IAsyncEnumerable(Of Object)) As IAsyncEnumerable(Of TResult)

Type Parameters

TResult

The type to cast the elements of source to.

Parameters

source
IAsyncEnumerable<Object>

The IAsyncEnumerable that contains the elements to be cast to type TResult.

Returns

An IAsyncEnumerable that contains each element of the source sequence cast to the TResult type.

Applies to