| Variables: |
|---|
| Constructors: |
|---|
| Functions: |
|---|
public System.Int32 GetHashCode(System.Object obj) Generates a hash code for the specified System.Object. Parameter obj: The System.Object for which a hash code is to be generated. Returns: A System.Int32 containing the hash code for the specified System.Object. Throws: : obj is null. If obj is null, it is required that a call to System.Collections.IHashCodeProvider.GetHashCode(System.Object) throw System.ArgumentNullException. Implement this method to generate a better hash table distribution than the default method provided by the type of the System.Object 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 may 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. |