In Java we can do this:
bool[][] something = new bool[5][10];
// Then, we can do this, since indexes do not refer to null instances:
something [3][7] = true;
However, the same does not seem to compile in C#. Is there an equivalent way of doing this in C#?
The syntax is slightly different:
Or if you are using C# 3.0+, you can slightly simplify the declaration:
That is a multi-dimensional array. You can refer to MSDN for more information.