共用方式為


SortedList<TKey,TValue>.Comparer 屬性

定義

取得已排序清單的 IComparer<T>

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

屬性值

IComparer<TKey>

目前 IComparable<T>SortedList<TKey,TValue>

備註

擷取這個屬性的值是一種 O(1) 運算。

適用於