Hi
I have some data which is set up as follows; I have a collection of Parent objects which each contains a collection of child objects.
I'm trying to obtain a list of all child objects which appear in every parent.
The only way that I can think of doing this is to loop through each parent (using e.g foreach) and intersect the child objects on a parent-by-parent basis.
Does anyone know if there is an easier/nicer way to do this using linq?
Thanks
I have some data which is set up as follows; I have a collection of Parent objects which each contains a collection of child objects.
I'm trying to obtain a list of all child objects which appear in every parent.
The only way that I can think of doing this is to loop through each parent (using e.g foreach) and intersect the child objects on a parent-by-parent basis.
Does anyone know if there is an easier/nicer way to do this using linq?
Thanks