Showing posts with label Difference between IComparable and IComparer Interfaces of .NET Framework. Show all posts
Showing posts with label Difference between IComparable and IComparer Interfaces of .NET Framework. Show all posts

Monday, January 19, 2009

Difference between IComparable and IComparer Interfaces of .NET Framework

  • These two interfaces you have to implement if you want to be able to make custom sorting.
  • The object to be sorted will implement IComparable while the class that is going to sort the objects will implement IComparer.