Linq对列表进行分组,求和,排序

1.分组之后形成一个新的类的列表(分组过程中求和),最后又进行了一次排序 public List<StaticForestArea> GroupForestList(List<FeatWithBSM> ListBSM) { var res = ListBSM.GroupBy(x => x.LZ).S
posted @ 2020-07-04 11:02  拎着红杯子的黄鸭子  Views(630)  Comments(0Edit  收藏  举报