【发布时间】:2015-08-20 06:56:59
【问题描述】:
示例...
List<array> thisListOfArray = new List<array>();
List<string> thisArrayA= new List<string>();
List<string> gMaintenanceB = new List<string>();
thisArrayA.Add("ItemA1");
thisArrayA.Add("ItemA2");
thisArrayA.Add("ItemA3");
thisArrayB.Add("ItemB1");
thisArrayB.Add("ItemB2");
thisArrayB.Add("ItemB3");
thisListOfArray.Add(thisArrayA.ToArray());
thisListOfArray.Add(thisArrayB.ToArray());
我想获取我在thisListOfArray 中输入的每个值。
【问题讨论】:
-
是
List<string[]> -
在
C#中,数组用type[]表示。因此List<array>需要变成List<string[]>。