Friday, May 23, 2014

LINQ Distinct with a property

Comparer(No work)


Group By Method(work)
result = result.GroupBy(cust => cust.Name).Select(grp => grp.First()).ToList();

No comments:

Post a Comment