CSharpFeeds - All your C# feeds in one place.

Saturday, January 01, 2011

Reimplementing LINQ to Objects: Part 22 - GroupJoin

by skeet via Jon Skeet: Coding Blog on 1/1/2011 8:54:06 PM

Another operator that was decidedly easy to implement - partly as I was able to just adapt everything from Join, including the tests. 15 minutes for tests + implementation... and no doubt considerably long writing it up. What is it? After the complexity of GroupBy, GroupJoin has a refreshingly small list of overloads: public static IEnumerable<TResult> GroupJoin<TOuter, TInner, TKey, TResult>(     this IEnumerable<TOuter> outer,     ...

[ read more ]

Reimplementing LINQ to Objects: Part 21 - GroupBy

by skeet via Jon Skeet: Coding Blog on 1/1/2011 6:20:46 PM

Okay, after the brief hiatus earlier, we're ready to group sequences. What is it? GroupBy has eight overloads, using up to four type parameters and up to five normal parameters. Those of a sensitive disposition may wish to turn away now: public static IEnumerable<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(     this IEnumerable<TSource> source,     Func<TSource, TKey> keySelector) public static IEnu ...

[ read more ]

Reimplementing LINQ to Objects: Part 20 - ToList

by skeet via Jon Skeet: Coding Blog on 1/1/2011 1:17:29 PM

This morning I started writing the tests for GroupBy, prior to implementing it. That turned out to be a pain - really I wanted an easy way of getting at each element of the result (i.e. each result group). If only I had the ability to convert an arbitrary sequence into a query... I needed ToList. So, we enter a fairly brief diversion. What is it? ToList has a single, simple overload: public static List<TSource> ToList<TSource>(this IEnumerable<TSource> source) Fairly ...

[ read more ]

Links to my “Best of 2010” Posts

by ScottGu via ScottGu's Blog on 1/1/2011 6:01:39 AM

I hope everyone is having a Happy New Years! 2010 has been a busy blogging year for me (this is the 100th blog post I’ve done in 2010).  Several people this week suggested I put together a summary post listing/organizing my favorite posts from the year.  Below is a quick listing of some of my favorite posts organized by topic area: VS 2010 and .NET 4 Below is a series of posts I wrote (some in late 2009) about the VS 2010 and .NET 4 (including ASP.NET 4 and WPF 4) relea ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us