Get upper bound in an Array in C#

Example:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace ForgetCode
{   
    public class MainClass
    {
        public static void Main()
        {
            string[,] a = {{"hi","hello"},{"aa","ggg"}};
            for (int i = 0; i <= a.GetUpperBound(0); i++)
            {
                string s1 = a[i, 0];
                string s2 = a[i, 1];
                Console.WriteLine("{0}, {1}", s1, s2);
            }
        }
    }
}


Output:
hi, hello
aa, ggg