AsyncEnumerable.OfType<TResult>(IAsyncEnumerable<Object>) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Filters the elements of a IAsyncEnumerable<T> based on a specified type TResult
.
public:
generic <typename TResult>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TResult> ^ OfType(System::Collections::Generic::IAsyncEnumerable<System::Object ^> ^ source);
C#
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)
- TResult
The type to filter the elements of the sequence on.
- source
- IAsyncEnumerable<Object>
The IAsyncEnumerable<T> whose elements to filter.
IAsyncEnumerable<TResult>
An IAsyncEnumerable<T> that contains elements from the input sequence of type TResult
.
Produkt | Verzie |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided) |
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: