You want the GetLength() method of your array:
a.GetLength(0);
http://msdn.microsoft.com/en-us/library/system.array.getlength.aspx
You want the GetLength() method of your array:
a.GetLength(0);
http://msdn.microsoft.com/en-us/library/system.array.getlength.aspx