110,535
社区成员
发帖
与我相关
我的任务
分享
void Main()
{
List<List<int>> GridsArry = new List<List<int>>{
new List<int>{1,2,3,4},
new List<int>{5,6,7,9}
};
GridsArry.SelectMany(s=>s).ToList().ForEach(s=>Console.WriteLine(s)); //8
/*
1
2
3
4
5
6
7
9
*/
}