Generates a hash code for the specified key in the current instance.
- key
- The object whose hash code is to be generated.
A int containing the hash code for key.
Type Reason ArgumentNullException key is null.
This method is accessible only through this class or a derived class.
Operation
As described above.If the current instance was instantiated with a specific IHashCodeProvider implementation, this method uses that hash code provider; otherwise, it uses the object.GetHashCode implementation of key .
Namespace: System.Collections
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0