SortedSet<T>.Comparer 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 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) 操作。