I have an interface like this:
public interface IFoo { int A {get;} int B {get;} }
and I have multiple classes implementing IFoo. I
Besides CodeInChaos' answer you may be interested in reading Guidelines for Overriding Equals() and Operator ==.