Synopsis: | Override the Equals method whenever you implement the == operator, and make them do the same thing |
Language: | C# |
Severity Level: | 1 |
Category: | Object oriented |
Description: |
This allows infrastructure code such as Note: For value types, the other way around applies also, i.e., whenever you override the |
Literature References: |
MS Design Guidelines for Implementing Equals and the Equality Operator (==) |