I have parent object which contain List and this child1 has List , I would like to get the List items as return type when I pass Parent object as input parameter
Asked
Active
Viewed 179 times
0
-
Please do not include a screenshot of code. Please include the relevant code directly in your question. – Jonathan Jan 13 '22 at 19:54
-
Does this answer your question? [Difference Between Select and SelectMany](https://stackoverflow.com/questions/958949/difference-between-select-and-selectmany) – Jonathan Jan 13 '22 at 19:57
-
you can use `.SelectMany` to flatten grandchildren objects. See: https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.selectmany?view=net-6.0 – Jonathan Jan 13 '22 at 19:58
1 Answers
1
you can use .SelectMany
to flatten grandchildren objects. See: https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.selectmany?view=net-6.0

Jonathan
- 4,916
- 2
- 20
- 37