Error!
Success!

IComparer Proxy to Sort by Multiple Conditions

0
kicks

IComparer Proxy to Sort by Multiple Conditions  (Unpublished)

If you've ever wanted to sort a list of objects using more than one comparer (i.e., you want to sort a list of people by last name and then by first name), then you probably had to compose your own IComparer object to do so. If you wanted to be able to dynamically change sort orders, then your task was more difficult. To address this problem, I wrote a class called ComparerProxy which implements IComparer and proxies comparisons through a list of IComparers.


Kicked By:
Drop Kicked By: