語言

SortedSet<T>.Comparer 屬性

定義

取得 IComparer<T> 用來排序 中值 SortedSet<T>的物件。

public:
 property System::Collections::Generic::IComparer<T> ^ Comparer { System::Collections::Generic::IComparer<T> ^ get(); };
public System.Collections.Generic.IComparer<T> Comparer { get; }
member this.Comparer : System.Collections.Generic.IComparer<'T>
Public ReadOnly Property Comparer As IComparer(Of T)

屬性值

用於排序 中值 SortedSet<T>的比較器。

備註

回傳的比較器可以是 的預設比較器,也可以是該類型 SortedSet<T>所用的比較器。

取得該屬性的價值是一個 O(1) 操作。

適用於