HashCode.GetHashCode 方法

定义

注意

HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.

此方法不受支持,因此不应调用。

public:
 override int GetHashCode();
[System.Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.", true)]
public override int GetHashCode ();
[<System.Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes. Use ToHashCode to retrieve the computed hash code.", true)>]
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

返回

此方法将始终引发 NotSupportedException

属性

例外

始终在调用此方法时引发。

适用于