I have a list of objects with three integer properties. How can I get the distinct values of first integer property from my list?
This should work,
List<int> result = YourListObject.Select(o => o.FirstInteger).Distinct().ToList();
1.4m articles
1.4m replys
5 comments
57.0k users