Supplies a hash code for an object, using a custom hash function.
Assembly: mscorlib (in mscorlib.dll)
The Hashtable class. The objects used as keys by a Hashtable object must override the Object.GetHashCode and Object.Equals methods. Object.GetHashCode or the key's implementation of Object.GetHashCode is used as the hash code provider. Object.Equals or the key's implementation of Object.Equals is used as the comparer.interface is used in conjunction with the
However, some overloads of the Hashtable constructor take a parameter that is an implementation, or a parameter that is an IComparer implementation, or both. If an implementation is passed to the constructor, the IHashCodeProvider.GetHashCode method of that implementation is used as the hash code provider. If an IComparer implementation is passed to the constructor, the IComparer.Compare method of that implementation is used as the comparer.
Available since 1.1