title: Create and populate multidimensional array representing minesweeper-type grid
body: <p>I'm trying to create a multidimensional array to contain arrays of cartesian coordinates (x,y) in a multidimensional array of [X,Y] width and height.</p>
  
  <p>This is where I've gotten to so far; I've become hopelessly confused...</p>
  
  <pre><code>int[][][] grid = new int[width][][];
      for (int x = 0; x &lt; width; x++)
      {
          grid[x] = new int[height][];
          for (int y = 0; y &lt; height; y++)
          {
             grid[y] = new int[2][];
          }
      }
  
      foreach (int[][] coordinate in grid)
      {
          //        
      }
  </code></pre>
  
  <p>For example, I'd like a 3 x 4 grid to be represented by an array as such:</p>
  
  <pre><code>{1, 1}, {2, 1}, {3, 1}
  {1, 2}, {2, 2}, {3, 2}
  {1, 3}, {2, 3}, {3, 3}
  {1, 4}, {2, 4}, {3, 4}
  </code></pre>
  
  <p>etc...</p>
  
  <p>I've scoured the web for a solution in C# (I'm a relative newcomer to OO, unfamiliar with C, C++ etc.) but have so far drawn a blank.</p>
  
  <p>Am I on the right track in the approach I've taken with the creation of the array?
  Can anyone offer some tips on how to populate the array with the coordinates, using loops if possible?</p>