Hashtable.EqualityComparer Hashtable.EqualityComparer Hashtable.EqualityComparer Hashtable.EqualityComparer Property

정의

IEqualityComparer에 사용할 Hashtable를 가져옵니다.Gets the IEqualityComparer to use for the Hashtable.

protected:
 property System::Collections::IEqualityComparer ^ EqualityComparer { System::Collections::IEqualityComparer ^ get(); };
protected System.Collections.IEqualityComparer EqualityComparer { get; }
member this.EqualityComparer : System.Collections.IEqualityComparer
Protected ReadOnly Property EqualityComparer As IEqualityComparer

속성 값

예외

속성이 값으로 설정되었지만 IHashCodeProviderIComparer를 사용하여 해시 테이블을 만든 경우The property is set to a value, but the hash table was created using an IHashCodeProvider and an IComparer.

설명

IEqualityComparer 해시 코드 공급자 및 비교자를 포함 합니다.The IEqualityComparer includes both the comparer and the hash code provider. 경우는 IEqualityComparer 에 사용 되는 Hashtable 생성자, 개체에서 키로 사용 합니다 Hashtable 재정의할 필요가 없습니다를 Object.GetHashCodeObject.Equals 메서드.If an IEqualityComparer is used in the Hashtable constructor, the objects used as keys in the Hashtable are not required to override the Object.GetHashCode and Object.Equals methods.

이 속성 값을 검색하는 것은 O(1) 연산입니다.Retrieving the value of this property is an O(1) operation.

적용 대상

추가 정보