ImmutableList<T>.Sort Méthode

Définition

Surcharges

Nom Description
Sort()

Trie les éléments dans la liste immuable entière à l’aide du comparateur par défaut.

Sort(IComparer<T>)

Trie les éléments dans la liste immuable entière à l’aide du comparateur spécifié.

Sort(Comparison<T>)

Trie les éléments dans la liste immuable entière à l’aide du comparateur spécifié.

Sort(Int32, Int32, IComparer<T>)

Trie une plage d’éléments dans la liste immuable à l’aide du comparateur spécifié.

Sort()

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

Trie les éléments dans la liste immuable entière à l’aide du comparateur par défaut.

public:
 System::Collections::Immutable::ImmutableList<T> ^ Sort();
public System.Collections.Immutable.ImmutableList<T> Sort();
member this.Sort : unit -> System.Collections.Immutable.ImmutableList<'T>
Public Function Sort () As ImmutableList(Of T)

Retours

Liste triée.

S’applique à

Sort(IComparer<T>)

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

Trie les éléments dans la liste immuable entière à l’aide du comparateur spécifié.

public:
 System::Collections::Immutable::ImmutableList<T> ^ Sort(System::Collections::Generic::IComparer<T> ^ comparer);
public System.Collections.Immutable.ImmutableList<T> Sort(System.Collections.Generic.IComparer<T> comparer);
public System.Collections.Immutable.ImmutableList<T> Sort(System.Collections.Generic.IComparer<T>? comparer);
member this.Sort : System.Collections.Generic.IComparer<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function Sort (comparer As IComparer(Of T)) As ImmutableList(Of T)

Paramètres

comparer
IComparer<T>

Implémentation à utiliser lors de la comparaison d’éléments ou null pour utiliser le comparateur par défaut (Default).

Retours

Liste triée.

S’applique à

Sort(Comparison<T>)

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

Trie les éléments dans la liste immuable entière à l’aide du comparateur spécifié.

public:
 System::Collections::Immutable::ImmutableList<T> ^ Sort(Comparison<T> ^ comparison);
public System.Collections.Immutable.ImmutableList<T> Sort(Comparison<T> comparison);
member this.Sort : Comparison<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function Sort (comparison As Comparison(Of T)) As ImmutableList(Of T)

Paramètres

comparison
Comparison<T>

Délégué à utiliser lors de la comparaison d’éléments.

Retours

Liste triée.

Exceptions

comparison a la valeur null.

S’applique à

Sort(Int32, Int32, IComparer<T>)

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

Trie une plage d’éléments dans la liste immuable à l’aide du comparateur spécifié.

public:
 System::Collections::Immutable::ImmutableList<T> ^ Sort(int index, int count, System::Collections::Generic::IComparer<T> ^ comparer);
public System.Collections.Immutable.ImmutableList<T> Sort(int index, int count, System.Collections.Generic.IComparer<T> comparer);
public System.Collections.Immutable.ImmutableList<T> Sort(int index, int count, System.Collections.Generic.IComparer<T>? comparer);
member this.Sort : int * int * System.Collections.Generic.IComparer<'T> -> System.Collections.Immutable.ImmutableList<'T>
Public Function Sort (index As Integer, count As Integer, comparer As IComparer(Of T)) As ImmutableList(Of T)

Paramètres

index
Int32

Index de départ de base zéro de la plage à trier.

count
Int32

Longueur de la plage à trier.

comparer
IComparer<T>

Implémentation à utiliser lors de la comparaison d’éléments ou null pour utiliser le comparateur par défaut (Default).

Retours

Liste triée.

S’applique à