AsyncEnumerable.TakeLast<TSource> Metod

Definition

Returnerar en ny sekvens som innehåller de sista count elementen från source.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TSource> ^ TakeLast(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, int count);
public static System.Collections.Generic.IAsyncEnumerable<TSource> TakeLast<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, int count);
static member TakeLast : System.Collections.Generic.IAsyncEnumerable<'Source> * int -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function TakeLast(Of TSource) (source As IAsyncEnumerable(Of TSource), count As Integer) As IAsyncEnumerable(Of TSource)

Typparametrar

TSource

Typ av element i source.

Parametrar

source
IAsyncEnumerable<TSource>

En sekvens att returnera element från.

count
Int32

Antalet element som ska hämtas från slutet av sekvensen.

Returer

IAsyncEnumerable<TSource>

En ny sekvens som innehåller de sista count elementen från source.

Gäller för