How to get distinct values from the List<T> with LINQ
- by Vincent Maverick Durano
Recently I was working with data from a generic List<T> and one of my objectives is to get the distinct values that is found in the List. Consider that we have this simple class that holds the following properties: public class Product
{
public string Make { get; set; }
public string Model { get; set; }
}
Now in…