<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Chunking a Collection into Groups of Three</title><link>http://blogs.msdn.com/ericwhite/archive/2008/08/19/chunking-a-collection-into-groups-of-three.aspx</link><description>[Blog Map] Raw data for a LINQ query doesn’t always come in the form you want. Recently, I had some data like this: string [] source = new [] { "EW" , "Eric" , "8:00" , "DW" , "Dave" , "9:00" , "JA" , "Jim" , "8:00" }; You want to transform the above</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Chunking a Collection into Groups of Three</title><link>http://blogs.msdn.com/ericwhite/archive/2008/08/19/chunking-a-collection-into-groups-of-three.aspx#8878845</link><pubDate>Tue, 19 Aug 2008 17:23:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8878845</guid><dc:creator>Doug</dc:creator><description>&lt;p&gt;Excellent. Didn't know you could do that.&lt;/p&gt;
</description></item><item><title>re: Chunking a Collection into Groups of Three</title><link>http://blogs.msdn.com/ericwhite/archive/2008/08/19/chunking-a-collection-into-groups-of-three.aspx#8887726</link><pubDate>Fri, 22 Aug 2008 16:19:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8887726</guid><dc:creator>Samuel Jack</dc:creator><description>&lt;p&gt;Eric,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;I've also been thinking about the problem of chunking a sequence. I've written up an alternative method, using an iterator, in this post:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blog.functionalfun.net/2008/08/anyone-for-slice-of-linq.html"&gt;http://blog.functionalfun.net/2008/08/anyone-for-slice-of-linq.html&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Chunking a Collection into Groups of Three</title><link>http://blogs.msdn.com/ericwhite/archive/2008/08/19/chunking-a-collection-into-groups-of-three.aspx#8888870</link><pubDate>Sat, 23 Aug 2008 00:10:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8888870</guid><dc:creator>EricWhite</dc:creator><description>&lt;p&gt;Samual,&lt;/p&gt;
&lt;p&gt;Your approach using an interator is fine too. &amp;nbsp;It has an advantage - the approach that I showed creates more short-lived objects on the heap. &amp;nbsp;Sometimes I am writing ad-hoq LINQ transforms for one reason or another, in which case I would use the above approach. &amp;nbsp;If I were making a library that would be used by many people, I would optimize using an approach similar to yours.&lt;/p&gt;
&lt;p&gt;-Eric&lt;/p&gt;
</description></item><item><title>Transforming Open XML Documents to Flat OPC Format</title><link>http://blogs.msdn.com/ericwhite/archive/2008/08/19/chunking-a-collection-into-groups-of-three.aspx#8968839</link><pubDate>Mon, 29 Sep 2008 16:07:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8968839</guid><dc:creator>Eric White's Blog</dc:creator><description>&lt;p&gt;Transforming Open XML documents using XSLT is an interesting scenario, but before we can do so, we need&lt;/p&gt;
</description></item></channel></rss>