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.
This populates both the Text and Value fields:
myCollection.Select(x => x.Name).Distinct() .Select(x => new MyClassToStore { Text = x, Value = x }).ToList();