I have elements in a 2 dimensional array.
I would like to go thru the array and assign ParamsValues[0,1] to ParamsValues[0,0] so on and so forth.Code:string[,] ParamsValues = { {"1Month", "1 Month"}, {"2Months", "2 Months" }, { "3Months", "3 Months"}};
How can I do this ?
I tried something like this and it didn't work.
thanksCode:for (int i = 0; i < ParamsValues.GetLength(0); i++) { for (int j = 0; j < ParamsValues.GetLength(1); j++) { k = ParamsValues[i, j]; string l = ParamsValues[i, j]; } //Console.WriteLine(k); }
nath




Reply With Quote