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>

Источник перечисления, предоставляющий элементы.

Возвращаемое значение

Перечисление, которое включает каждый индекс элемента в кортеж.

Исключения

source равно null.

Применяется к