You have to make sure your project in which you define Artist
compiles without errors. Otherwise your other projects won't pick up the change and still think Artist
implements IComparable
instead of IComparable<T>
. That's when you get the compile-time error:
'RecordCollection.Artist' does not implement interface member 'System.IComparable.CompareTo(object)'
There is no technical need to implement CompareTo(object)
also, and it won't fix your problem.