Język

AsyncEnumerable.OrderDescending<T> Metoda

Definicja

Sortuje elementy sekwencji w kolejności malejącej.

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)

Parametry typu

T

Typ elementów elementu source.

Parametry

source
IAsyncEnumerable<T>

Sekwencja wartości do zamówienia.

comparer
IComparer<T>

Element IComparer<T> do porównywania kluczy.

Zwraca

Element IAsyncEnumerable<T> , którego elementy są sortowane w kolejności malejącej.

Wyjątki

Parametr source ma wartość null.

Dotyczy