Find Max Id from list which has children of same list
I have a list of Persons which has children [same type]. I get the list from xml file.

**Scenerio :**

 Person : Id, Name, Gender, Age, Children [Class with fields]

 If personList has 1,2,5 Ids,
 2 and 5 with children 3,4 and 6,7,8 respectively.
 I have to get the max id as 8.

How do i get the max of Id from PersonList using lambda expression?



Find Max Id from list which has children of same list
===

I have a list of Persons which has children [same type]. I get the list from xml file.

**Scenerio :**

 Person : Id, Name, Gender, Age, Children [Class with fields]

 If personList has 1,2,5 Ids,
 2 and 5 with children 3,4 and 6,7,8 respectively.
 I have to get the max id as 8.

How do i get the max of Id from PersonList using lambda expression?


