So hash codes and equality are related; if two objects have the same hash code, they're equivalent. Hence if you
override GetHashCode
, you
have to override Equals
, or you'll run into problems. The kind that makes you say
wtf-is-this-shit when you discover that the bug was because the developer implemented Equals but not GetHashCode, or vice-versa ;)