title: Convert a jagged array to a 2D array directly without iterating each item?
body: <p>I am trying to save a DataTable into an excel sheet.. my code is like this..</p>
  
  <pre><code>Excel.Range range = xlWorkSheet.get_Range("A2");
  range = range.get_Resize(dtExcel.Rows.Count, dtExcel.Columns.Count);
  object[,] rng1 = new object[dtExcel.Rows.Count, dtExcel.Columns.Count];
  </code></pre>
  
  <p>Excel range requires range value as array[,] but I have the DataTable as jagged array[][].</p>
  
  <pre><code>object[][] rng2 = dtExcel.AsEnumerable().Select(x =&gt; x.ItemArray).ToArray();
  </code></pre>
  
  <p>Is there any built-in function to directly convert the jagged array[][] to a 2D array[][] ?
  Iterating through Excel, DataTable and assigning seems slower with bulk data..</p>
  
  <p>Also I don't want to setup querying with DSN for excel.. I chose excel storage to avoid the configuring of any databases.. :P 
  I found a detailed explanation of ways of writing data to excel here..
  <a href="http://support.microsoft.com/kb/306023" rel="noreferrer">http://support.microsoft.com/kb/306023</a></p>