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. [Edit]

protected virtual bool KeyEquals (object item, object key)

Parameters

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

Returns

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

Exceptions

TypeReason
ArgumentNullException

item is null.

-or-

key is null.

[Edit]

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.

[Edit]

Requirements

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