我有串的下面列出将多个列表垂直成一个字符串列表
List<string> List1 = new List<string> { "P1", "P2", "P3" };
List<string> List2 = new List<string> { "Q1", "Q2", "Q3" };
List<string> List3 = new List<string> { "R1", "R2", "R3" };
//........
// Add List1,List2, List3 values Vertically to CombileList
CombineList = { "P1", "Q1", "R1", "P2", "Q2", "R2", "P3", "Q3", "R3" };
我要值到CombineList从所有列表垂直添加,如CombineList所示,可以列出的n个以相同的方式添加到CombineList。
你有试过什么吗?使用循环这不应该太难。 – Ivar
这个答案可能是你正在寻找的:http://stackoverflow.com/a/10298725/390819 – GolfWolf
http://stackoverflow.com/questions/40768322/merge-multiple-lists-with-variable-length-popping每个元素 –