System.Collections.Hashtable.EqualityComparer Property

Gets the IEqualityComparer to use for the Hashtable.

Syntax

protected IEqualityComparer EqualityComparer { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The IEqualityComparer includes both the comparer and the hash code provider. 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(object) methods.

Retrieving the value of this property is an O(1) operation.

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0