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)

適用於