Determines whether the specified object and the specified key in the current instance represent the same value.
- item
- The object to compare with key.
- key
- The key in the current instance to compare with item.
true if item and key represent the same value; otherwise, false.
Type Reason ArgumentNullException item is null.
-or-
key is null.
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.
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0