Divide array into an array of subsequence array
<p>I have a  byte array:</p>

<p>byte[] bytes;  // many elements</p>

<p>I need to divide it into subsequence of byte arrays of X elements. For example, x = 4.</p>

<p>If bytes.Length does not multiply by X, then add 0 to last subsequence array so <strong>Length of all subsequnce must be X</strong>.</p>

<p>Linq available.</p>

<p>PS: my attempts</p>

<pre><code>    static void Main(string[] args)
    {
        List&lt;byte&gt; bytes = new List&lt;byte&gt;() { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };

        int c = bytes.Count / 4;

        for (int i = 0; i &lt;= c; i+=4)
        {
            int diff = bytes.Count - 4;

            if (diff &lt; 0)
            {

            }
            else
            {
                List&lt;byte&gt; b = bytes.GetRange(i, 4);
            }
        }


        Console.ReadKey();
    }
</code></pre>
