I need to do the following, I have a List with a class which contains 2 integer id and count
List
Now I want to do the following linq query:
Try it ,
.GroupBy(x => x.id) .Select(n => n.Sum(m => m.count));