语言

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

适用于