HashSet<T>.Comparer 属性
定义
获取用于确定集中的值是否相等的 IEqualityComparer<T> 对象。Gets the IEqualityComparer<T> object that is used to determine equality for the values in the set.
public:
property System::Collections::Generic::IEqualityComparer<T> ^ Comparer { System::Collections::Generic::IEqualityComparer<T> ^ get(); };
public System.Collections.Generic.IEqualityComparer<T> Comparer { get; }
member this.Comparer : System.Collections.Generic.IEqualityComparer<'T>
Public ReadOnly Property Comparer As IEqualityComparer(Of T)
属性值
用于确定集中的值是否相等的 IEqualityComparer<T> 对象。The IEqualityComparer<T> object that is used to determine equality for the values in the set.
注解
检索此属性的值的运算复杂度为 O(1)。Retrieving the value of this property is an O(1) operation.