Is it possible to get the distinct elements of a List
based on a property of the objects in the List
?
Someting like: Distinct(x => x.id)
What's not usefull for me is following: .Select(x => x.id).Distinct()
because then I would get back a List<int>
instead of List<MyClass>