I have a 3D array
String[][,] cross = {new String[,]{{"1", "b", "b", "b"}, {"b", "c", "c", "c"}},new String[,]{{"2", "b", "b", "e"}, {"b", "c", "c", "d"}}}
How to iterate over this array.
I want to iterate like this
foreach(String[,] abc in cross) //abc must be the first/second 2D array
foreach(string[] arr in abc) //arr must hold {"1", "b", "b", "b"} (say)
{
}
I tried this, but not working.
Given your jagged array of 2D arrays, you would perform classic iteration like the following