title: Does Array.Copy work with multidimensional arrays?
body: <p>This code works fine:</p>
  
  <pre><code>var newArray = new Rectangle[newHeight, newWidth];
  
  for (int x = 0; x &lt; newWidth; x++)
      for (int y = 0; y &lt; newHeight; y++)
          newArray[y, x] = (x &gt;= width) || (y &gt;= height) ? Rectangle.Empty : tiles[y, x];
  </code></pre>
  
  <p>But I am not having much luck replacing it with Array.Copy. Basically, if the resized array is larger it just adds blank rectangles to the edges. If it is smaller then it should just cut off the edges.</p>
  
  <p>When doing this:</p>
  
  <p><code>Array.Copy(tiles, newArray, newWidth * newHeight);</code></p>
  
  <p>It messes up the array and all of its contents become disordered and do not retain their original index. Maybe I'm just having a brainfart or something?</p>