Nyelv

HashCode.Equals(Object) Metódus

Definíció

Figyelemfelhívás

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

Ez a metódus nem támogatott, ezért nem hívható meg.

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

Paraméterek

obj
Object

Figyelmen kívül hagyott.

Válaszok

Ez a módszer mindig dob egy NotSupportedException.

Attribútumok

Kivételek

Ezt a metódust mindig a metódus meghívásakor kell eldobni.

A következőre érvényes: