AsyncEnumerable.Index<TSource>(IAsyncEnumerable<TSource>) Metod

Definition

Returnerar en uppräkningsbar som införlivar elementets index i en tupplar.

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

Typparametrar

TSource

Typen av element sourcei .

Parametrar

source
IAsyncEnumerable<TSource>

Källuppräkningsbar som tillhandahåller elementen.

Returer

En uppräkningsbar som införlivar varje elementindex i en tupplar.

Undantag

source är null.

Gäller för