S
Stu
I have a base class which implements the IComparable interface. I
then have a subclass of that which I assumed would inherit the
IComparable implementation in the base class, but it doesn't seem to
have done so since I can't call the CompareTo method on the subclass.
Note that I'm using IComparable<T> with the type being the type of my
base class, but I would still expect that to work. Am I incorrect?
then have a subclass of that which I assumed would inherit the
IComparable implementation in the base class, but it doesn't seem to
have done so since I can't call the CompareTo method on the subclass.
Note that I'm using IComparable<T> with the type being the type of my
base class, but I would still expect that to work. Am I incorrect?