using System;
namespace ConsoleApplication_C_Sharp
{
class Program
{
static void Main(string[] args)
{
int[,] arr2D = { { 1, 2 }, { 3, 4 }, { 5, 6 }, { 7, 8 },
{ 9, 10 }, { 11, 12 }, { 13, 14 } };
for (int i = 0; i < arr2D.Rank; i++)
Console.WriteLine("Dimension {0}: index from {1} to {2}",
i, arr2D.GetLowerBound(i),
arr2D.GetUpperBound(i));
}
}
}
/*
run:
Dimension 0: index from 0 to 6
Dimension 1: index from 0 to 1
*/