_FieldInfo.GetHashCode 方法

定义

为 COM 对象提供对 GetHashCode() 方法的与版本无关的访问。Provides COM objects with version-independent access to the GetHashCode() method.

public:
 int GetHashCode();
public int GetHashCode ();
abstract member GetHashCode : unit -> int
Public Function GetHashCode () As Integer

返回

Int32

当前实例的哈希代码。The hash code for the current instance.

注解

此方法用于从非托管代码访问托管类,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

GetHashCode方法用作特定类型的哈希函数。The GetHashCode method serves as a hash function for a particular type. GetHashCode 适用于哈希算法和哈希表之类的数据结构。GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

适用于