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
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
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
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
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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기