Synopsis: | Override the GetHashCode method whenever you override the Equals method. |
Language: | C# |
Severity Level: | 1 |
Category: | Object oriented |
Description: |
You must guarantee that for two objects considered equal, according the Equals method, the GetHashCode method returns the same value. |
Literature References: |
MS Design Guidelines for Implementing Equals and the Equality Operator (==) |