Answer by Jon Skeet for linq aggregate
Your updated question isn't entirely clear in terms of the phone number, but I suspect you want something like: var query = from category in list group category by category.Name into grouped select new...
View ArticleAnswer by LaserJesus for linq aggregate
var foo = new List<Category>() { new Category() { Name = "AA", Count = 2}, new Category() { Name = "BB", Count = 3}, new Category() { Name = "AA", Count = 4} }; var bar = foo.GroupBy(c =>...
View Articlelinq aggregate
class Category{ public string Name { get; set; } public int Count { get; set;}}Name CountAA 2BB 3AA 4I have an IEnumerable<Category>and would like to get a list of Categories with unique names...
View Article
More Pages to Explore .....