AsyncEnumerable.Index<TSource>(IAsyncEnumerable<TSource>) Método

Definición

Devuelve un enumerable que incorpora el índice del elemento en una tupla.

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))

Parámetros de tipo

TSource

Tipo de los elementos de source.

Parámetros

source
IAsyncEnumerable<TSource>

Enumerable de origen que proporciona los elementos.

Devoluciones

Enumerable que incorpora cada índice de elementos en una tupla.

Excepciones

source es null.

Se aplica a