I know that if I need to group in Linq I do this:
var results = from p in persons
group p by p.PersonID into g
and if I need to group using another field/criteria, I do this:
var results2 = from p in persons
group p by p.PersonName into g
but this means traversing the list I have twice. Is there anyway to do both grouping in one statement?