ben lowery

IComparer is a pain

Aug 4 2005

I really dislike IComparer in .NET. Instead of an interface with one
method, I really would have liked things that take an IComparer to take
a delegate instead. That way, instead of having to whip up an entire
class just to encapsulate my custom sorting algorithm for an Array, I
could just make a method with the right signature and run with it.

Related posts:

  1. Yay for querySelectorAll. Boo for StaticNodeList.
  2. Cancelling a FreeCreditReport.com account is an exercise in pain
  3. Why do event arguments derive from EventArgs?

Leave a Reply