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

Definitie

Retourneert een opsomming die de index van het element in een tuple bevat.

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

Type parameters

TSource

Het type van de elementen van source.

Parameters

source
IAsyncEnumerable<TSource>

De bron opsommen die de elementen levert.

Retouren

Een opsomming die elke elementindex in een tuple bevat.

Uitzonderingen

source is null.

Van toepassing op