HashCode.Equals(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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
忽略。
傳回
此方法總是拋出 。NotSupportedException
- 屬性
例外狀況
每次呼叫這個方法時都會丟棄。