Mono Class Library: System.Collections.Hashtable Overview | Members

System.Collections.Hashtable.KeyEquals Method

Determines whether the specified object and the specified key in the current instance represent the same value.

protected virtual bool KeyEquals (object item, object key)

Parameters

item
The object to compare with key.
key
The key in the current instance to compare with item.

Returns

true if item and key represent the same value; otherwise, false.

Exceptions

TypeReason
ArgumentNullException

item is null.

-or-

key is null.

Remarks

This method is accessible only through this class or a derived class.

Operation
As described above.

If the current instance was initialized with a specified IComparer implementation, this method uses that implementation to perform the comparison; otherwise, the object.Equals(object) implementation of item is used.

Requirements

Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0