c# 2D x and y length code example Example: c# length 2d array Click to copyint rowsOrHeight = ary.GetLength(0); int colsOrWidth = ary.GetLength(1);