Taal

AsyncEnumerable.Cast<TResult>(IAsyncEnumerable<Object>) Methode

Definitie

Cast de elementen van een IAsyncEnumerable<T> naar het opgegeven type.

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)

Type parameters

TResult

Het type om de elementen van de bron naar te casten.

Parameters

source
IAsyncEnumerable<Object>

De IAsyncEnumerable<T> elementen die moeten worden gecast om te typen TResult.

Retouren

IAsyncEnumerable<TResult>

Een IAsyncEnumerable<T> die elk element van de bronreeks cast naar het TResult type bevat.

Van toepassing op