ImmutableList<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 elements in the entire immutable list by using the default comparer. |
Sort(IComparer<T>) |
Sorts the elements in the entire immutable list by using the specified comparer. |
Sort(Comparison<T>) |
Sorts the elements in the entire immutable list by using the specified comparison object. |
Sort(Int32, Int32, IComparer<T>) |
Sorts the elements in a range of elements in the immutable list by using the specified comparer. |
Sort()
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
Sorts the elements in the entire immutable list by using the default comparer.
public:
void Sort();
public void Sort ();
member this.Sort : unit -> unit
Public Sub Sort ()
Applies to
Sort(IComparer<T>)
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
Sorts the elements in the entire immutable list by using the specified comparer.
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 implementation to use when comparing elements, or null
to use the default comparer (Default).
Applies to
Sort(Comparison<T>)
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
Sorts the elements in the entire immutable list by using the specified comparison object.
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 object to use when comparing elements.
Exceptions
comparison
is null
.
Applies to
Sort(Int32, Int32, IComparer<T>)
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
- Source:
- ImmutableList_1.Builder.cs
Sorts the elements in a range of elements in the immutable list by using the specified 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);
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 zero-based starting index of the range to sort.
- count
- Int32
The length of the range to sort.
- comparer
- IComparer<T>
The implementation to use when comparing elements, or null
to use the default comparer (Default).
Applies to
.NET