I have a List
of Presidents
:
var obj = new List<President>();
They have fields Name
and BeginningGovernance
.
The Name
can be repeated in list. The BeginningGovernance
cann't repeat.
I need take List
of unique by Name
Presidents with the oldest BeginningGovernance
(if name repeated).
How can I do this with help of Linq?