AsyncEnumerable.TakeLast<TSource> メソッド

定義

countの最後の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)

型パラメーター

TSource

source内の要素の型。

パラメーター

source
IAsyncEnumerable<TSource>

要素を返すシーケンス。

count
Int32

シーケンスの末尾から取得する要素の数。

返品

IAsyncEnumerable<TSource>

sourceの最後のcount要素を含む新しいシーケンス。

適用対象