ImmutableArray<T>.Builder.Sort Metódus

Definíció

Túlterhelések

Name Description
Sort()

Rendezi a tömb tartalmát.

Sort(IComparer<T>)

Rendezi a tömb tartalmát.

Sort(Comparison<T>)

A teljes tömb elemeit a megadott Comparison<T>módon rendezi.

Sort(Int32, Int32, IComparer<T>)

Rendezi a tömb tartalmát.

Sort()

Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs

Rendezi a tömb tartalmát.

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

A következőre érvényes:

Sort(IComparer<T>)

Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs

Rendezi a tömb tartalmát.

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))

Paraméterek

comparer
IComparer<T>

A rendezéshez használandó összehasonlító. Ha a összehasonlító az null, akkor a rendszer a tömb elemeinek alapértelmezett összehasonlító értékét használja.

A következőre érvényes:

Sort(Comparison<T>)

Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs

A teljes tömb elemeit a megadott Comparison<T>módon rendezi.

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))

Paraméterek

comparison
Comparison<T>

Az Comparison<T> elemek összehasonlításakor használandó.

Kivételek

comparison null értékű.

A következőre érvényes:

Sort(Int32, Int32, IComparer<T>)

Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs
Forrás:
ImmutableArray_1.Builder.cs

Rendezi a tömb tartalmát.

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))

Paraméterek

index
Int32

A rendezés kezdő indexe.

count
Int32

A rendezésbe belefoglalandó elemek száma.

comparer
IComparer<T>

A rendezéshez használandó összehasonlító. Ha a összehasonlító az null, akkor a rendszer a tömb elemeinek alapértelmezett összehasonlító értékét használja.

A következőre érvényes: