A few weeks ago I wrote an article on how to use IComparer and how it was easy it is to create a custom comparer to sort our objects. This time we'll talk creating a default sort mechanism for our objects by using IComparer's relative, the interface IComparable. We'll also be touching Anonymous Delegates...
Don't you just love Generics? I mean, it helps you alot in so many ways that everytime you are asked about why you love Generics all you could say is "Uh, type safety?".. Err! We need to change that! There are alot more things to like about Generics than just type safety... Like code organization......