AsyncEnumerable.ToAsyncEnumerable<TSource> メソッド

定義

IEnumerable<T>IAsyncEnumerable<T>に変換します。

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)

型パラメーター

TSource

ソースの要素の型。

パラメーター

source
IEnumerable<TSource>

列挙する要素の IEnumerable<T>

返品

IAsyncEnumerable<TSource>

sourceからの要素のシーケンスを含むIAsyncEnumerable<T>

例外

sourcenullです。

注釈

sourceが既にIAsyncEnumerable<T>を実装している場合は、直接返されます。 それ以外の場合、結果の IAsyncEnumerable<T> を反復処理するたびに、 sourceが反復処理されます。

適用対象