Why do I get an Out of Range Exception here?
My Code -the method takes int[][] numbers as a Parameter- :
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 to Google it, but I don't have any glue.
