ImmutableArray<T>.Builder.Sort Metod

Definition

Överlagringar

Name Description
Sort()

Sorterar innehållet i matrisen.

Sort(IComparer<T>)

Sorterar innehållet i matrisen.

Sort(Comparison<T>)

Sorterar elementen i hela matrisen med den angivna Comparison<T>.

Sort(Int32, Int32, IComparer<T>)

Sorterar innehållet i matrisen.

Sort()

Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs

Sorterar innehållet i matrisen.

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

Gäller för

Sort(IComparer<T>)

Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs

Sorterar innehållet i matrisen.

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

Parametrar

comparer
IComparer<T>

Jämförelsen som ska användas för sortering. Om jämförelsen är nullanvänds standardjäxaren för elementtypen i matrisen.

Gäller för

Sort(Comparison<T>)

Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs

Sorterar elementen i hela matrisen med den angivna 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))

Parametrar

comparison
Comparison<T>

Att Comparison<T> använda när du jämför element.

Undantag

comparison är null.

Gäller för

Sort(Int32, Int32, IComparer<T>)

Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs
Källa:
ImmutableArray_1.Builder.cs

Sorterar innehållet i matrisen.

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

Parametrar

index
Int32

Startindexet för sorteringen.

count
Int32

Antalet element som ska ingå i sorteringen.

comparer
IComparer<T>

Jämförelsen som ska användas för sortering. Om jämförelsen är nullanvänds standardjäxaren för elementtypen i matrisen.

Gäller för