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

Implemented by classes that support custom hash functions for instances of the class.

contains the method. The consumer of an object should call this method to obtain a hash code for the object using a custom hash function.

- Method
  System.Int32 `` The for which a hash code is to be generated.

  Generates a hash code for the specified .

  A containing the hash code for the specified .

  If is , it is required that a call to throw .

  Implement this method to generate a better hash table distribution than the default method provided by the type of the for which the hash code is being generated.

  The value returned by this method should not be persisted past the lifetime of the application that created the value. The first reason is that the hash function of a class might be altered to generate a better distribution, rendering any values from the old hash function useless. The second reason is that the default implementation of this class does not guarantee that the same value will be returned by different instances.

  is . 0 1.0.5000.0 2.0.0.0 4.0.0.0
0 System.Obsolete("Please use IEqualityComparer instead.") System.Runtime.InteropServices.ComVisible(true)