ImmutableArray<T>.Sort Methode

Definitie

Overloads

Name Description
Sort()

Hiermee sorteert u de elementen in de onveranderbare matrix met behulp van de standaard-vergelijkingsfunctie.

Sort(IComparer<T>)

Sorteert de elementen in de onveranderbare matrix met behulp van de opgegeven vergelijkingsfunctie.

Sort(Comparison<T>)

Sorteert de elementen in het geheel ImmutableArray<T> met behulp van de opgegeven Comparison<T>.

Sort(Int32, Int32, IComparer<T>)

Sorteert de opgegeven elementen in de onveranderbare matrix met behulp van de opgegeven vergelijkingsfunctie.

Sort()

Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs

Hiermee sorteert u de elementen in de onveranderbare matrix met behulp van de standaard-vergelijkingsfunctie.

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

Retouren

Een nieuwe onveranderbare matrix die de items in deze matrix bevat, in gesorteerde volgorde.

Van toepassing op

Sort(IComparer<T>)

Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs

Sorteert de elementen in de onveranderbare matrix met behulp van de opgegeven vergelijkingsfunctie.

public:
 System::Collections::Immutable::ImmutableArray<T> Sort(System::Collections::Generic::IComparer<T> ^ comparer);
public System.Collections.Immutable.ImmutableArray<T> Sort(System.Collections.Generic.IComparer<T> comparer);
public System.Collections.Immutable.ImmutableArray<T> Sort(System.Collections.Generic.IComparer<T>? comparer);
member this.Sort : System.Collections.Generic.IComparer<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Sort (comparer As IComparer(Of T)) As ImmutableArray(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.

Retouren

Een nieuwe onveranderbare matrix die de items in deze matrix bevat, in gesorteerde volgorde.

Van toepassing op

Sort(Comparison<T>)

Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs

Sorteert de elementen in het geheel ImmutableArray<T> met behulp van de opgegeven Comparison<T>.

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

Parameters

comparison
Comparison<T>

De Comparison<T> te gebruiken bij het vergelijken van elementen.

Retouren

De gesorteerde lijst.

Uitzonderingen

comparison is nul.

Van toepassing op

Sort(Int32, Int32, IComparer<T>)

Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs
Bron:
ImmutableArray_1.cs

Sorteert de opgegeven elementen in de onveranderbare matrix met behulp van de opgegeven vergelijkingsfunctie.

public:
 System::Collections::Immutable::ImmutableArray<T> Sort(int index, int count, System::Collections::Generic::IComparer<T> ^ comparer);
public System.Collections.Immutable.ImmutableArray<T> Sort(int index, int count, System.Collections.Generic.IComparer<T> comparer);
public System.Collections.Immutable.ImmutableArray<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.ImmutableArray<'T>
Public Function Sort (index As Integer, count As Integer, comparer As IComparer(Of T)) As ImmutableArray(Of T)

Parameters

index
Int32

De index van het eerste element dat moet worden gesorteerd.

count
Int32

Het aantal elementen dat moet worden opgenomen in de sortering.

comparer
IComparer<T>

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

Retouren

Een nieuwe onveranderbare matrix die de items in deze matrix bevat, in gesorteerde volgorde.

Van toepassing op