Hi frnds...
i have the follwing for 2 D array with for loop
public class MultidimensionalArrays { public static void Main() { int[,] matrix = { { 1, 1 }, { 2, 2 }, { 3, 3 } };
for (int i = 0; i < matrix.GetLength(0); i++) { for (int j = 0; j < matrix.GetLength(1); j++) { Console.WriteLine("matrix[{0}, {1}] = {2}", i, j, matrix[i, j]); } }
Console.ReadKey(); } }
in the above code i want to know the following lines ...
matrix.GetLength(0)
matrix.GetLength(1)
"matrix[{0}, {1}] = {2}", i, j, matrix[i, j]);
please explain while code executing what the above lines does exactly as per the logic....
thanx in advance
