RuntimeHelpers.GetHashCode(Object) 方法

定义

用作特定对象的哈希函数,适用于使用哈希代码(如哈希表)的算法和数据结构。

public:
 static int GetHashCode(System::Object ^ o);
public static int GetHashCode(object o);
static member GetHashCode : obj -> int
Public Shared Function GetHashCode (o As Object) As Integer

参数

o
Object

要为其检索哈希代码的对象。

返回

由参数标识 o 的对象哈希代码。

注解

有关此 API 的详细信息,请参阅 RuntimeHelpers.GetHashCode 的补充 API 备注

适用于

另请参阅