共用方式為


HashCode.Equals(Object) 方法

定義

警告

HashCode is a mutable struct and should not be compared with other HashCodes.

不支援且不應該呼叫這個方法。

public:
 override bool Equals(System::Object ^ obj);
[System.Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes.", true)]
public override bool Equals (object? obj);
[System.Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes.", true)]
public override bool Equals (object obj);
[<System.Obsolete("HashCode is a mutable struct and should not be compared with other HashCodes.", true)>]
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

參數

obj
Object

忽略。

傳回

Boolean

這個方法一律會擲回 NotSupportedException

屬性

例外狀況

呼叫這個方法時一律會擲回。

適用於