AsyncEnumerable.Index<TSource>(IAsyncEnumerable<TSource>) メソッド

定義

要素のインデックスをタプルに組み込む列挙可能な値を返します。

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<ValueTuple<int, TSource>> ^ Index(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source);
public static System.Collections.Generic.IAsyncEnumerable<(int Index, TSource Item)> Index<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source);
static member Index : System.Collections.Generic.IAsyncEnumerable<'Source> -> System.Collections.Generic.IAsyncEnumerable<ValueTuple<int, 'Source>>
<Extension()>
Public Function Index(Of TSource) (source As IAsyncEnumerable(Of TSource)) As IAsyncEnumerable(Of ValueTuple(Of Integer, TSource))

型パラメーター

TSource

sourceの要素の型。

パラメーター

source
IAsyncEnumerable<TSource>

要素を提供するソース列挙可能。

返品

各要素インデックスをタプルに組み込む列挙可能。

例外

sourcenullです。

適用対象