AsyncEnumerable.OrderByDescending メソッド

定義

オーバーロード

OrderByDescending<TSource,TKey>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<TKey>>, IComparer<TKey>)

ソース:
OrderBy.cs
ソース:
OrderBy.cs
ソース:
OrderBy.cs

シーケンスの要素を降順で並べ替えます。

public static System.Linq.IOrderedAsyncEnumerable<TSource> OrderByDescending<TSource,TKey>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TKey>> keySelector, System.Collections.Generic.IComparer<TKey>? comparer = default);
static member OrderByDescending : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Key>> * System.Collections.Generic.IComparer<'Key> -> System.Linq.IOrderedAsyncEnumerable<'Source>
<Extension()>
Public Function OrderByDescending(Of TSource, TKey) (source As IAsyncEnumerable(Of TSource), keySelector As Func(Of TSource, CancellationToken, ValueTask(Of TKey)), Optional comparer As IComparer(Of TKey) = Nothing) As IOrderedAsyncEnumerable(Of TSource)

型パラメーター

TSource

sourceの要素の型。

TKey

keySelectorによって返されるキーの型。

パラメーター

source
IAsyncEnumerable<TSource>

順序付ける値のシーケンス。

keySelector
Func<TSource,CancellationToken,ValueTask<TKey>>

要素からキーを抽出する関数。

comparer
IComparer<TKey>

キーを比較する IComparer<T>

返品

キーに従って要素が降順に並べ替えられる IAsyncEnumerable<T>

例外

keySelectornullです。

適用対象

OrderByDescending<TSource,TKey>(IAsyncEnumerable<TSource>, Func<TSource,TKey>, IComparer<TKey>)

ソース:
OrderBy.cs
ソース:
OrderBy.cs
ソース:
OrderBy.cs

シーケンスの要素を降順で並べ替えます。

public static System.Linq.IOrderedAsyncEnumerable<TSource> OrderByDescending<TSource,TKey>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,TKey> keySelector, System.Collections.Generic.IComparer<TKey>? comparer = default);
static member OrderByDescending : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, 'Key> * System.Collections.Generic.IComparer<'Key> -> System.Linq.IOrderedAsyncEnumerable<'Source>
<Extension()>
Public Function OrderByDescending(Of TSource, TKey) (source As IAsyncEnumerable(Of TSource), keySelector As Func(Of TSource, TKey), Optional comparer As IComparer(Of TKey) = Nothing) As IOrderedAsyncEnumerable(Of TSource)

型パラメーター

TSource

sourceの要素の型。

TKey

keySelectorによって返されるキーの型。

パラメーター

source
IAsyncEnumerable<TSource>

順序付ける値のシーケンス。

keySelector
Func<TSource,TKey>

要素からキーを抽出する関数。

comparer
IComparer<TKey>

キーを比較する IComparer<T>

返品

キーに従って要素が降順に並べ替えられる IAsyncEnumerable<T>

例外

keySelectornullです。

適用対象