Convert Datatable into an array in C#
<p>I want to convert DataTable in an 2-D array form in C#.
Below is the example for clear understanding.</p>

<p>DataTable in C#:</p>

<pre><code>code           Price
----------     ----------
1146441600000  34
1146528000000  5
1146614400000  10
1146700800000  7
1146787200000  12
1147046400000  8
1147132800000  9
</code></pre>

<p>Output required in js:</p>

<pre><code>[[1146441600000,34],
[1146528000000,5],
[1146614400000,10],
[1146700800000,7],
[1146787200000,12],
[1147046400000,8],
[1147132800000,9]]
</code></pre>

<p>I am using Razor engine for front end rendering.</p>