AsyncEnumerable.Order<T> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Trie les éléments d’une séquence dans l’ordre croissant.
public static System.Linq.IOrderedAsyncEnumerable<T> Order<T>(this System.Collections.Generic.IAsyncEnumerable<T> source, System.Collections.Generic.IComparer<T>? comparer = default);
static member Order : System.Collections.Generic.IAsyncEnumerable<'T> * System.Collections.Generic.IComparer<'T> -> System.Linq.IOrderedAsyncEnumerable<'T>
<Extension()>
Public Function Order(Of T) (source As IAsyncEnumerable(Of T), Optional comparer As IComparer(Of T) = Nothing) As IOrderedAsyncEnumerable(Of T)
Paramètres de type
- T
Type des éléments de source.
Paramètres
- source
- IAsyncEnumerable<T>
Séquence de valeurs à classer.
- comparer
- IComparer<T>
Pour IComparer<T> comparer les clés.
Retours
Dont IAsyncEnumerable<T> les éléments sont triés.
Exceptions
source a la valeur null.