Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


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

Definition

Filters the elements of a IAsyncEnumerable<T> based on a specified type TResult.

C#
public static System.Collections.Generic.IAsyncEnumerable<TResult> OfType<TResult>(this System.Collections.Generic.IAsyncEnumerable<object?> source);

Type Parameters

TResult

The type to filter the elements of the sequence on.

Parameters

source
IAsyncEnumerable<Object>

The IAsyncEnumerable<T> whose elements to filter.

Returns

IAsyncEnumerable<TResult>

An IAsyncEnumerable<T> that contains elements from the input sequence of type TResult.

Applies to

Termék Verziók
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided), 10
.NET Standard 2.0 (package-provided)