I have an array defined:
int [,] ary; // ... int nArea = ary.Length; // x*y or total area
This is all well and good, but I need to know how
You could also consider using getting the indexes of last elements in each specified dimensions using this as following;
int x = ary.GetUpperBound(0); int y = ary.GetUpperBound(1);
Keep in mind that this gets the value of index as 0-based.