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

Definitie

Hiermee filtert u de elementen van een IAsyncEnumerable<T> op basis van een opgegeven type TResult.

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

Type parameters

TResult

Het type waarop de elementen van de reeks moeten worden gefilterd.

Parameters

source
IAsyncEnumerable<Object>

De IAsyncEnumerable<T> elementen waarvan u wilt filteren.

Retouren

IAsyncEnumerable<TResult>

Een IAsyncEnumerable<T> met elementen uit de invoervolgorde van het type TResult.

Van toepassing op