Why am I getting an exception to the range here?
The method accepts int[][] numbersas a parameter.
My code is:
List<int> myList = new List<int>();
for (int i = 0; i < numbers.GetUpperBound(0); i++)
{
for (int z = 0; z < numbers.GetUpperBound(1); z++)
{
myList.Add(intervals[i][z]);
}
}
I tried Google, but I do not have glue.
source
share