Right, so I have an enumerable and wish to get distinct values from it.
Using System.Linq, there\'s of course an extension method called Distinct<
System.Linq
Distinct<
This will do what you want but I don't know about performance:
var distinctValues = from cust in myCustomerList group cust by cust.CustomerId into gcust select gcust.First();
At least it's not verbose.