BCL mscorlib [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ] 1.0.5000.0 2.0.0.0 4.0.0.0 System.Obsolete("Please use IEqualityComparer instead.") System.Runtime.InteropServices.ComVisible(true)

The interface is used in conjunction with the class. The objects used as keys by a object must override the and methods. or the key's implementation of is used as the hash code provider. or the key's implementation of is used as the comparer.

However, some overloads of the constructor take a parameter that is an implementation, or a parameter that is an implementation, or both. If an implementation is passed to the constructor, the method of that implementation is used as the hash code provider. If an implementation is passed to the constructor, the method of that implementation is used as the comparer.

Supplies a hash code for an object, using a custom hash function.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Int32 `` is .

  The return value from this method must not be persisted for two reasons. First, the hash function of a class might be altered to generate a better distribution, rendering any values from the old hash function useless. Second, the default implementation of this class does not guarantee that the same value will be returned by different instances.

  Returns a hash code for the specified object.

  A hash code for the specified object.

  The for which a hash code is to be returned. 0
0