Can someone help me assign multiple string arrays into one 2d string array?
问题 In C#, can someone help me assign multiple string arrays to a 2d string array? Here is my code: string[] test1 = new string[5] { "one", "two", "three", "four", "five" }; string[] test2 = new string[5] { "one", "two", "three", "four", "five" }; string[] test3 = new string[5] { "one", "two", "three", "four", "five" }; string[] test4 = new string[5] { "one", "two", "three", "four", "five" }; string[,] allTestStrings = new string [4, 5]; allTestStrings[0] = test1; allTestStrings[1] = test2;