I have the following list:
class Person { public String Name { get; set; } public String LastName { get; set; } public Stri
In addition to Darin Dimitrov's answer, here is the same in query syntax:
var groupByCityQuery = from person in personList group person by person.City into grouping select grouping;