日期:2014-05-17 浏览次数:20812 次
List<List<int>> list_初始值 = new List<List<int>>()
{
new List<int>(){0,2,3},
new List<int>(){1,7,4},
new List<int>(){2,9,4},
};
var query = from t1 in list_初始值[0]
from t2 in list_初始值[1]
from t3 in list_初始值[2]
select new
{
a = t1,
b = t2,
c = t3
};
query.ToList().ForEach(x => { Console.WriteLine(x); });
List<List<String>> list0 = new List<List<String>>()
{
new List<String>(){"0","2","3"},
new List<String>(){"1","7","4"},
new List<String>(){"2","9","4"},
};
var array1 = list0.Aggregate((m, n) => m.SelectMany(t1 => n.Select(t2 => t1 + t2).ToL