C#/.NET Little Wonders: Five Easy Sequence Aggregators (blackrabbitcoder.net)

submitted by rcashrcash(4149) 8 months, 27 days ago

Here are five easy ways to aggregate sequences. Often times looking at a sequence of objects, we want to perform some sort of aggregation across those sequences. The methods we will be looking at are LINQ extension methods.

1 comment |category: |Views: 41

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:

posted by vijaystvijayst(1311) 8 months, 26 days ago 0

LINQ is a wonderful framework for doing complex operations on sequences. My favorite is to make a distinct set of elements from a repeating set of elements. Before, I used to write code which loops through each element and do some comparisons. With LINQ, it is as simple as List.Distinct<className> ();

Reply

information Login or create an account to comment on this story