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 關注
- 402 瀏覽
添加回答
舉報
0/150
提交
取消