AsyncEnumerable.SkipLast<TSource> メソッド

定義

ソース コレクションの最後のsource要素を省略したcountの要素を含む新しいシーケンスを返します。

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

型パラメーター

TSource

sourceの要素の型。

パラメーター

source
IAsyncEnumerable<TSource>

要素を返す IAsyncEnumerable<T>

count
Int32

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

返品

IAsyncEnumerable<TSource>

シーケンスの末尾から要素を引いた source 要素 count 含む新しいシーケンス。

例外

sourcenullです。

適用対象