int[,] numbers = new int[4,5]; int rows = numbers.GetLength(0); // returns 4 int cols = numbers.GetLength(1); // returns 5In this example, a 2-dimensional array "numbers" is created using the "new" operator. The GetLength method is then called twice to determine the number of rows and columns in the array. The first parameter of the method specifies the dimension to get the length of (in this case, 0 for rows, and 1 for columns). Package Library: The System.GetLength method is part of the System namespace in the .NET Framework Class Library, which is included in the "mscorlib.dll" assembly.