ImmutableArray<T>.Builder.Sort Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Sort() |
Sorts the contents of the array. |
Sort(IComparer<T>) |
Sorts the contents of the array. |
Sort(Comparison<T>) |
Sorts the elements in the entire array using the specified Comparison<T>. |
Sort(Int32, Int32, IComparer<T>) |
Sorts the contents of the array. |
Sort()
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
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>)
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
Sorts the contents of the array.
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>
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(Comparison<T>)
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
Sorts the elements in the entire array using the specified 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>
The Comparison<T> to use when comparing elements.
Exceptions
comparison
is null.
Applies to
Sort(Int32, Int32, IComparer<T>)
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
- Source:
- ImmutableArray_1.Builder.cs
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);
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
.NET