Question about IComparable
On page 177 in the IComparable section, the book says "If you use the plain version, the CompareTo method takes two nonspecific objects as parameters..." however the code shows "public int CompareTo(object obj)". That looks like one parameter, not two. I was expecting to see CompareTo(object obj, object obj2). I do not see anything in the errata and so I'm confused. I am missing something or is this an uncaught typo?
|