System.Runtime.InteropServices._MethodBase.GetHashCode Method

Provides COM objects with version-independent access to the object.GetHashCode method.

Syntax

public int GetHashCode ()

Returns

The hash code for the current instance.

Remarks

This method is for access to managed classes from unmanaged code and should not be called from managed code.

The object.GetHashCode method serves as a hash function for a particular type. object.GetHashCode is suitable for use in hashing algorithms and data structures such as a hash table.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0