I'm currently investigating the use of FxCop with one of our existing projects and am getting an odd result.
The output displays a small number of breaches of the 'Override methods on comparable types' rule stating "'Log' should override Equals since it implements IComparable."
There are two issues with this:
- I thought that it was only necessary to implement
CompareTo
when implementingIComparable
(MSDN itself confirms this) - The class is not implementing
IComparable
butIComparable<T>
and does impliment CompareTo as strongly typed.
So it FxCop (1.36) throwing a wobbly or is it my understanding thats out of whack here..?
Thanks in advance.