IComparer Proxy to Sort by Multiple Conditions(dpatrickcaldwell.blogspot.com)

submitted by tncbbthositgtncbbthositg(266) 3 years ago

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.

add a comment |category: |Views: 51

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story