我有以下几点:
List一个名为GlobalStrings
例如,在循环中:
List<string> GlobalStrings = new List<string>();
List<string> localStrings = new List<string>();
for(x=1;x<10;x++)
{
localStrings.Add("some value");
localStrings.Add("some value");
}
// Want to append localStrings to GlobalStrings as easily as possible
发布于 2009-12-01 19:29:11
发布于 2009-12-01 19:29:34
发布于 2009-12-01 19:31:12
尝试AddRange-method:
GlobalStrings.AddRange(localStrings);
https://stackoverflow.com/questions/1825568
复制相似问题