Creating sub arrays using LINQ
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/419019/split-list-into-sublists-with-linq">Split List into Sublists with LINQ</a><br>
  <a href="http://stackoverflow.com/questions/438188/split-a-collection-into-n-parts-with-linq">Split a collection into n parts with LINQ?</a>  </p>
</blockquote>



<p>I have an array like this:</p>

<pre><code>[1,2,4,5.....n]
</code></pre>

<p>I would like to convert it in sub arrays like this:</p>

<pre><code>[
   [1,2,3],
   [4,5,6],
   ...
]
</code></pre>

<p>Basically I want to group the array in groups of <strong>n</strong> members</p>

<p>Is there any LINQ function to help me to accomplish this??</p>

<p>I was thinking in the <code>GroupBy</code> or <code>SelectMany</code> but I have not figured out how to do it</p>

<p>Note, I already did this using a <code>foreach</code> statement, but I would like to do it using LINQ</p>
