अंग्रेज़ी में पढ़ें संपादित करें

इसके माध्यम से साझा किया गया


HashCode.Equals(Object) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Caution

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

This method is not supported and should not be called.

[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);

Parameters

obj
Object

Ignored.

Returns

This method will always throw a NotSupportedException.

Attributes

Exceptions

Always thrown when this method is called.

Applies to

उत्पाद संस्करण
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1