c#
Is it possible to convert a ArrayList to a 2D int[1,13] array ?
The ArrayList is all numbers like "1111100000000", "0111110000000".
And I want them to look like this:
int[,] a = { { 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 } };
The reason I want to convert them is that I don't know how to create multi-array if conditions with an ArrayList like:
if(a[i,j] >= b[i,j])
{
do something...
}