Darren Murray

Darren Murray

  • NA
  • 11
  • 23.3k

interfaces and IComparable

Feb 12 2011 6:45 PM

Continuing in my develpment of C# and .Net I am struggling to understand the purpose of interfaces but particularly the IComparable interface. If the interface is implemented it provides a comparison method but what advantage does this provide over the comparison methods String.CompareTo or Int32.CompareTo. These can be called without implementing IComparable. Can someone explain? Have searched internet and not found a useful explanation.
tx
 

Answers (7)