I am wondering how can I achieve this?
I want to get only distinct names from a collection of objects
MyObject a = new Object(); a.Name = \'One\'; a.
Maybe something like this can help?
var distinctItems = items .GroupBy(x => x.PropertyToCompare) .Select(x => x.First());