I have an object which has a date and a list of people, a person has a first and last name. Something like:
PeopleInfo
----------
DateTime - StartDate
List<Person> - People
Person
------
string - FirstName
string - LastName
I have a list of people info where there are multiple StartDates the same each with its own list of people. Is it possible to merge these into a single object using linq?
Example
StartDate - 1/1/2011, People Bob, Sue, Jane
StartDate - 2/2/2011, People Scott, Rob, Mark
StartDate - 1/1/2011, People Fred, Gill, Jack
Expected output
StartDate - 1/1/2011, People Bob, Sue, Jane, Fred, Gill, Jack
StartDate - 2/2/2011, People Scott, Rob, Mark
Is this possible in linq?
Thanks