Idioma

AsyncEnumerable.Cast<TResult>(IAsyncEnumerable<Object>) Método

Definição

Converte os elementos de um IAsyncEnumerable<T> para o tipo especificado.

public:
generic <typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TResult> ^ Cast(System::Collections::Generic::IAsyncEnumerable<System::Object ^> ^ source);
public static System.Collections.Generic.IAsyncEnumerable<TResult> Cast<TResult>(this System.Collections.Generic.IAsyncEnumerable<object?> source);
static member Cast : System.Collections.Generic.IAsyncEnumerable<obj> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function Cast(Of TResult) (source As IAsyncEnumerable(Of Object)) As IAsyncEnumerable(Of TResult)

Parâmetros de tipo

TResult

O tipo para o qual converter os elementos de origem.

Parâmetros

source
IAsyncEnumerable<Object>

O IAsyncEnumerable<T> que contém os elementos a serem convertidos no tipo TResult.

Retornos

IAsyncEnumerable<TResult>

Um IAsyncEnumerable<T> que contém cada elemento da sequência de origem convertido no TResult tipo.

Aplica-se a