If I understand what you are going to do, you should use this SelectManay overload , which allows you to call the result selection function for each item in it.
The request should be:
var lst = new List<ParentType>(); var query = lst.SelectMany(p => p.ChildTypes, (parent, child) => new { parent, child } ) .Select(p => new MixedType { ChildID = p.child.ID, ChildName = p.child.Name, ParentID = p.parent.ID, ParentName = p.parent.Name });
Good luck
Homam source share