語言

AsyncEnumerable.OrderDescending<T> 方法

定義

依遞減順序排序序列的專案。

public static System.Linq.IOrderedAsyncEnumerable<T> OrderDescending<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Collections.Generic.IComparer<T>? comparer = default);
static member OrderDescending : System.Collections.Generic.IAsyncEnumerable<'T> * System.Collections.Generic.IComparer<'T> -> System.Linq.IOrderedAsyncEnumerable<'T>
<Extension()>
Public Function OrderDescending(Of T) (source As IAsyncEnumerable(Of T), Optional comparer As IComparer(Of T) = Nothing) As IOrderedAsyncEnumerable(Of T)

類型參數

T

元素 source的類型。

參數

source
IAsyncEnumerable<T>

一連串的數值排序。

comparer
IComparer<T>

還有 IComparer<T> 比較鑰匙。

傳回

其 IAsyncEnumerable<T> 元素依降序排序。

例外狀況

source 是 null。

適用於