Let\'s suppose if we have a class like:
class Person { internal int PersonID; internal string car; }
I have a list of this class
You can also Try this:
var results= persons.GroupBy(n => new { n.PersonId, n.car}) .Select(g => new { g.Key.PersonId, g.Key.car)}).ToList();