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.
Advertisements