ImmutableArray<T>.Builder.Sort Method

Definition

Overloads

Name Description
Sort()

Sorts the contents of the array.

Sort(IComparer<T>)

Sorts the contents of the array.

Sort(Int32, Int32, IComparer<T>)

Sorts the contents of the array.

Sort()

Sorts the contents of the array.

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

Applies to

Sort(IComparer<T>)

Sorts the contents of the array.

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>

The comparer to use for sorting. If comparer is null, the default comparer for the elements type in the array is used.

Applies to

Sort(Int32, Int32, IComparer<T>)

Sorts the contents of the array.

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

The starting index for the sort.

count
Int32

The number of elements to include in the sort.

comparer
IComparer<T>

The comparer to use for sorting. If comparer is null, the default comparer for the elements type in the array is used.

Applies to