Please help, now I have a matrix, I want use Combination algorithm to generate a array for length 6
<p>The first thanks a lot for your help , the following is my matrix, I want to implement combination algorithm between multiple arrays in LINQ for this matrix.</p>

<pre><code>int[,] cj = { 
                        { 10, 23, 16, 20 },
                        { 22, 13, 1, 33 },
                        { 7, 19, 31, 12 },
                        { 30, 14, 21, 4 },
                        { 2, 29, 32, 6 },
                        { 18, 26, 17, 8 },
                        { 25, 11, 5, 28 },
                        { 24, 3, 15, 27 }
                    };
</code></pre>

<p>other:</p>

<pre><code>public static IEnumerable&lt;IEnumerable&lt;T&gt;&gt; Combinations&lt;T&gt;(this IEnumerable&lt;T&gt; elements, int k)
        {
            return k == 0 ? new[] { new T[0] } :
                elements.SelectMany((e, i) =&gt;
                    elements.Skip(i + 1).**Combinations**(k - 1).Select(c =&gt; (new[] { e }).Concat(c)));
        }
</code></pre>

<p>The above method has a error in my project, System.Collections.Generic.IEnumerable' does not contain a definition for 'Combinations' and no extension method 'Combinations' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?</p>

<p>I use .Net Framework3.5, what is the reason it?</p>
