语言

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) 操作。

适用于