I ran into trouble because I wasn't implementing Equals/GetHashCode in child classes, so I just put
public abstract override bool Equals(object o);
public abstract override int GetHashCode();
in the base class, and was then forced to implement it in order to get a successful compile. The whole concept of "abstract override" makes my head hurt sometimes but it is pretty useful.
(Incidentally, I think that having to implement GetHashCode() says something about your code, although I'm not sure what. Maybe that you're trying too hard to get value semantics?)
10:59:18 PM
|