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.
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 .