int[,] matrix2D = new int[,]; int[,,] matrix3D = new int[,,]; matrix2D.GetLength(0); //width matrix2D.GetLength(1); //height matrix3d.GetLength(0) //x matrix3d.GetLength(0) //y matrix3d.GetLength(0) //z