RuntimeHelpers.GetHashCode(Object) 方法

定義

做為特定物件的雜湊函式,適合在使用雜湊碼之雜湊演算法及資料結構中使用。

public:
 static int GetHashCode(System::Object ^ o);
public static int GetHashCode (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 備註

適用於

另請參閱