AsyncEnumerable.ToAsyncEnumerable<TSource> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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> 。
返品
sourceからの要素のシーケンスを含むIAsyncEnumerable<T>。
例外
source は nullです。
注釈
sourceが既にIAsyncEnumerable<T>を実装している場合は、直接返されます。 それ以外の場合、結果の IAsyncEnumerable<T> を反復処理するたびに、 sourceが反復処理されます。