I want to take the results of a where clause on a list and then take that result set and create just one new type that has all its fields constructed from aggregates of the original query. So given the basic example below, is there anyway to combine the 2 linq statements into one? If […]
Category: aggregate
linq aggregate
class Category { public string Name { get; set; } public int Count { get; set;} } Name Count AA 2 BB 3 AA 4 I have an IEnumerable<Category> and would like to get a list of Categories with unique names and the sum of multiple entries Output Name Count AA 6 BB 3 Update […]