c# get the first length of 2d array code example Example: c# length 2d array int rowsOrHeight = ary.GetLength(0); int colsOrWidth = ary.GetLength(1);