AsyncEnumerable.ToAsyncEnumerable<TSource> Metoda

Definice

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TSource> ^ ToAsyncEnumerable(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Generic.IAsyncEnumerable<TSource> ToAsyncEnumerable<TSource>(this System.Collections.Generic.IEnumerable<TSource> source);
static member ToAsyncEnumerable : seq<'Source> -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function ToAsyncEnumerable(Of TSource) (source As IEnumerable(Of TSource)) As IAsyncEnumerable(Of TSource)

Parametry typu

TSource

Typ prvků zdroje.

Parametry

source
IEnumerable<TSource>

Prvek IEnumerable<T> , který se má vytvořit výčet.

Návraty

IAsyncEnumerable<TSource>

Obsahující IAsyncEnumerable<T> sekvenci prvků z source.

Výjimky

source je null.

Poznámky

Pokud source už implementujete IAsyncEnumerable<T>, vrátí se přímo. V opačném případě bude každá iterace prostřednictvím výsledné IAsyncEnumerable<T> iterace procházet source.

Platí pro