我有一个 list
List<List<Employee>> EmployeeListCollection;
想要
List<Employee> EmployeeList=//all employee in EmployeeListCollection
查询是什么?
请您参考如下方法:
List<Employee> EmployeeList = EmployeeListCollection.SelectMany(c => c).ToList();
我有一个 list
List<List<Employee>> EmployeeListCollection;
想要
List<Employee> EmployeeList=//all employee in EmployeeListCollection
查询是什么?
请您参考如下方法:
List<Employee> EmployeeList = EmployeeListCollection.SelectMany(c => c).ToList();