小编ide*_*ain的帖子

动态Linq Groupby SELECT键,列出<T>

我正在使用Dynamic Linq helper来分组数据.我的代码如下:

Employee[] empList = new Employee[6];
empList[0] = new Employee() { Name = "CA", State = "A", Department = "xyz" };
empList[1] = new Employee() { Name = "ZP", State = "B", Department = "xyz" };
empList[2] = new Employee() { Name = "AC", State = "B", Department = "xyz" };
empList[3] = new Employee() { Name = "AA", State = "A", Department = "xyz" };
empList[4] = new Employee() { Name = "A2", State = "A", Department …
Run Code Online (Sandbox Code Playgroud)

c# linq

4
推荐指数
1
解决办法
4443
查看次数

标签 统计

c# ×1

linq ×1