AsyncEnumerable.Cast<TResult>(IAsyncEnumerable<Object>) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Convertit les éléments d’un IAsyncEnumerable<T> en type spécifié.
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)
Paramètres de type
- TResult
Type vers lequel convertir les éléments de la source.
Paramètres
- source
- IAsyncEnumerable<Object>
Qui IAsyncEnumerable<T> contient les éléments à convertir en type TResult.
Retours
Qui IAsyncEnumerable<T> contient chaque élément de la séquence source cast vers le TResult type.