AsyncEnumerable.Index<TSource>(IAsyncEnumerable<TSource>) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Devolve um enumerável que incorpora o índice do elemento numa 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 Genérico
- TSource
O tipo dos elementos de source.
Parâmetros
- source
- IAsyncEnumerable<TSource>
A fonte enumerável fornece os elementos.
Devoluções
Um enumerável que incorpora cada índice de elemento numa tupla.
Exceções
source é null.