ImmutableList<T>.Sort Methode

Definitie

Overloads

Name Description
Sort()

Hiermee sorteert u de elementen in de volledige onveranderbare lijst met behulp van de standaard comparer.

Sort(IComparer<T>)

Hiermee sorteert u de elementen in de volledige onveranderbare lijst met behulp van de opgegeven vergelijkingsfunctie.

Sort(Comparison<T>)

Hiermee sorteert u de elementen in de volledige onveranderbare lijst met behulp van de opgegeven vergelijkingsfunctie.

Sort(Int32, Int32, IComparer<T>)

Hiermee sorteert u een reeks elementen in de onveranderbare lijst met behulp van de opgegeven vergelijkingsfunctie.

Sort()

Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs

Hiermee sorteert u de elementen in de volledige onveranderbare lijst met behulp van de standaard comparer.

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)

Retouren

De gesorteerde lijst.

Van toepassing op

Sort(IComparer<T>)

Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs

Hiermee sorteert u de elementen in de volledige onveranderbare lijst met behulp van de opgegeven vergelijkingsfunctie.

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)

Parameters

comparer
IComparer<T>

De implementatie die moet worden gebruikt bij het vergelijken van elementen of null voor het gebruik van de standaard comparer (Default).

Retouren

De gesorteerde lijst.

Van toepassing op

Sort(Comparison<T>)

Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs

Hiermee sorteert u de elementen in de volledige onveranderbare lijst met behulp van de opgegeven vergelijkingsfunctie.

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)

Parameters

comparison
Comparison<T>

De gemachtigde die moet worden gebruikt bij het vergelijken van elementen.

Retouren

De gesorteerde lijst.

Uitzonderingen

comparison is null.

Van toepassing op

Sort(Int32, Int32, IComparer<T>)

Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs
Bron:
ImmutableList_1.cs

Hiermee sorteert u een reeks elementen in de onveranderbare lijst met behulp van de opgegeven vergelijkingsfunctie.

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)

Parameters

index
Int32

De op nul gebaseerde beginindex van het bereik dat moet worden gesorteerd.

count
Int32

De lengte van het bereik dat moet worden gesorteerd.

comparer
IComparer<T>

De implementatie die moet worden gebruikt bij het vergelijken van elementen of null voor het gebruik van de standaard comparer (Default).

Retouren

De gesorteerde lijst.

Van toepassing op