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.
If you just want back distinct names, you can use:
myCollection.Select(x => x.Name).Distinct().ToList();