using System;
public class MainClass
{
static void Main()
{
int[] lengthsArray = new int[2] { 3, 5 };
int[] boundsArray = new int[2] { 2, 3 };
Array multiDimensionalArray = Array.CreateInstance(typeof(String), lengthsArray, boundsArray);
for (int i = 0; i < multiDimensionalArray.Rank; i++)
Console.WriteLine("{0}:\t{1}\t{2}", i,multiDimensionalArray.GetLowerBound(i),multiDimensionalArray.GetUpperBound(i));
}
}
|