title: How to initialize an array of 2D-arrays?
body: <p>I have an array of 2D-arrays. For example, it is like:</p>
  
  <pre><code>{{{0, 0, 1}, {1, 0, 0}}
  {{0, 0, 3}, {2, 1, 2}, {2, 2, 1}, {3, 0, 0}}
  {{0, 0, 7}, {3, 2, 6}, {6, 2, 3}, {6, 3, 2}, {7, 0, 0}}}
  </code></pre>
  
  <p>But If I write</p>
  
  <pre><code>int [,][] arrays={{{0, 0, 1}, {1, 0, 0}}
                    {{0, 0, 3}, {2, 1, 2}, {2, 2, 1}, {3, 0, 0}}
                    {{0, 0, 7}, {3, 2, 6}, {6, 2, 3}, {6, 3, 2}, {7, 0, 0}}};
  </code></pre>
  
  <p>the compiler will complain "; expected".</p>
  
  <p>If I write</p>
  
  <pre><code>int [,][] arrays={new int[,] {{0, 0, 1}, {1, 0, 0}}
                    new int[,] {{0, 0, 3}, {2, 1, 2}, {2, 2, 1}, {3, 0, 0}}
                    new int[,] {{0, 0, 7}, {3, 2, 6}, {6, 2, 3}, {6, 3, 2}, {7, 0, 0}}};
  </code></pre>
  
  <p>the compiler will complain </p>
  
  <blockquote>
    <p>"A nested array initializer is expected".</p>
  </blockquote>
  
  <p>So why does this happen and what is the correct way of initialization?</p>