LINQ中的扁平列表我有一个LINQ查询,它返回IEnumerable<List<int>>但我只想回来List<int>所以我想把我所有的记录IEnumerable<List<int>>只有一个数组。例子:IEnumerable<List<int>> iList = from number in
(from no in Method() select no) select number;我想把我所有的结果都拿走IEnumerable<List<int>>只有一个List<int>因此,来自源阵列:[1,2,3,4]和[5,6,7]我只想要一个数组[1,2,3,4,5,6,7]谢谢
- 3 回答
- 0 关注
- 379 浏览
添加回答
举报
0/150
提交
取消