linq query to select distinct variables from a collection c# code example
Example: how to use distinct in linq query in c#
var distValues = objList.Select(o=>o.typeId).Distinct().ToList();
var distValues = objList.Select(o=>o.typeId).Distinct().ToList();