I implemented a class that overloads the == and != Operators.
This seems to work fine; however, I get the warning 'type' defines operator == or operator != but does not override Object.Equals(object o) .
Ok, so I applied Equals. But now I get the warning 'type' defines operator == or operator != but does not override Object.GetHashCode() .
Does it end at some point? Or did I wander into the endless trail of requirements just because I want to overload == and != ?
Jonathan wood
source share