I have a data in a following format:
{{{0}},{{1}},{{2,3}},{{1,2},{3,4}},{{5,6},{7,8},{9,10}},....
Is there any way of storing this in a jagged array? The data is large, and I would like to include it directly in the code. I searched internet and it says I can declare it in a following way:
{ new int[][] { new int[] {0} }, new int[][] { new int[] {1} },
new int[][] { new int[] {2,3} }, new int[][] {new int[] {1,2} ,new int[] {3,4} } , ...
but typing those new int[][]
would be too time consuming and I am looking for a way that I can used the original data directly into the code.
Is there a way to do that?
Any suggestion would be appreciated!