How do you get the width and height of a multi-dimensional array?
You use Array.GetLength with the index of the dimension you wish to retrieve.
Use GetLength(), rather than Length.
int rowsOrHeight = ary.GetLength(0);
int colsOrWidth = ary.GetLength(1);