HashSet<T>.Comparer 属性

定义

IEqualityComparer<T>获取用于确定集中值的相等性的对象。

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>用于确定集中值的相等性的对象。

注解

检索此属性的值是 O(1) 操作。

适用于