I have a jagged array as shown below, and the array is inside a c# code:
@{
int[][] array = new int[2][4];
// codes here that manipulates the values of the array.
}
Now I want to get/traverse to the values in the array. But the code below just don't work. When I run the program I got a run-time error "Index was outside the bounds of the array."
for(var i = 0 ; i < @array.Count(); i++){
alert( '@array['i'].Length');
}
How to do that?
Thanks