Język

AsyncEnumerable.TakeLast<TSource> Metoda

Definicja

Zwraca nową sekwencję zawierającą ostatnie count elementy z klasy 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)

Parametry typu

TSource

Typ elementów w pliku source.

Parametry

source
IAsyncEnumerable<TSource>

Sekwencja zwracająca elementy.

count
Int32

Liczba elementów do podjęcia od końca sekwencji.

Zwraca

IAsyncEnumerable<TSource>

Nowa sekwencja zawierająca ostatnie count elementy z klasy source.

Dotyczy