ImmutableArray<T>.Builder.Sort Methode

Definitie

Overloads

Name Description
Sort()

Hiermee sorteert u de inhoud van de matrix.

Sort(IComparer<T>)

Hiermee sorteert u de inhoud van de matrix.

Sort(Comparison<T>)

Sorteert de elementen in de hele matrix met behulp van de opgegeven Comparison<T>.

Sort(Int32, Int32, IComparer<T>)

Hiermee sorteert u de inhoud van de matrix.

Sort()

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

Hiermee sorteert u de inhoud van de matrix.

public:
 void Sort();
public void Sort();
member this.Sort : unit -> unit
Public Sub Sort ()

Van toepassing op

Sort(IComparer<T>)

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

Hiermee sorteert u de inhoud van de matrix.

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

Parameters

comparer
IComparer<T>

De vergelijkingsfunctie die moet worden gebruikt voor sorteren. Als comparer is null, wordt de standaard comparer voor het type elementen in de matrix gebruikt.

Van toepassing op

Sort(Comparison<T>)

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

Sorteert de elementen in de hele matrix met behulp van de opgegeven Comparison<T>.

public:
 void Sort(Comparison<T> ^ comparison);
public void Sort(Comparison<T> comparison);
member this.Sort : Comparison<'T> -> unit
Public Sub Sort (comparison As Comparison(Of T))

Parameters

comparison
Comparison<T>

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

Uitzonderingen

comparison is nul.

Van toepassing op

Sort(Int32, Int32, IComparer<T>)

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

Hiermee sorteert u de inhoud van de matrix.

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

Parameters

index
Int32

De beginindex voor de sortering.

count
Int32

Het aantal elementen dat moet worden opgenomen in de sortering.

comparer
IComparer<T>

De vergelijkingsfunctie die moet worden gebruikt voor sorteren. Als comparer is null, wordt de standaard comparer voor het type elementen in de matrix gebruikt.

Van toepassing op