ImmutableHashSet<T>.KeyComparer 属性

定义

获取用于获得键的哈希代码,以及用于检查不可变哈希集内值的相等性的对象。Gets the object that is used to obtain hash codes for the keys and to check the equality of values in the immutable hash set.

public:
 property System::Collections::Generic::IEqualityComparer<T> ^ KeyComparer { System::Collections::Generic::IEqualityComparer<T> ^ get(); };
public System.Collections.Generic.IEqualityComparer<T> KeyComparer { get; }
member this.KeyComparer : System.Collections.Generic.IEqualityComparer<'T>
Public ReadOnly Property KeyComparer As IEqualityComparer(Of T)

属性值

用于获取键的哈希代码以及检查相等性的比较器。The comparer used to obtain hash codes for the keys and check equality.

适用于