C#
C-sharp : Only one of method Equals() and GetHashCode() defined
Overview
Only one of the Equals() and GetHashCode() methods is defined in the class.
Equals() and GetHashCode() methods are defined in class Object. Class Object is the root of the class hierarchy. All objects implement the methods of this class. And If you override one of this method, then you should override the other, otherwise, equal (in the sense of Equals()) objects may have different values for GetHashCode().
LOW
DerScanner Severity Score
Check your C# code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
See also
C#
