TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C# Coding Standard
Search

Rule:  7@520Checked automatically with code checker

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 (==)