Using Lambda for Sorting in C# .NET

added by bunglebooz
12/9/2010 3:48:16 AM

0 Kicks, 84 Views

Here’s a quick little tidbit that helped me this week. While writing a C# Windows application I found myself with a List of objects that did not implement a comparator interface. Because of this when I tried to call mylist.Sort() I got an error complaining about how it couldn’t compare the two objects.


0 comments