ImmutableArray<T>.Builder.Sort 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Sort() |
排序數位的內容。 |
| Sort(IComparer<T>) |
排序數位的內容。 |
| Sort(Int32, Int32, IComparer<T>) |
排序數位的內容。 |
Sort()
排序數位的內容。
public:
void Sort();
public void Sort();
member this.Sort : unit -> unit
Public Sub Sort ()
適用於
Sort(IComparer<T>)
排序數位的內容。
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))
參數
- comparer
- IComparer<T>
比較器用於分類。 若比較器為 null,則使用陣列中元素類型的預設比較器。
適用於
Sort(Int32, Int32, IComparer<T>)
排序數位的內容。
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))
參數
- index
- Int32
排序的起始索引。
- count
- Int32
排序中應包含的元素數量。
- comparer
- IComparer<T>
比較器用於分類。 若比較器為 null,則使用陣列中元素類型的預設比較器。