I’d like to know how to use SelectMany(). It seems to take so many arguments and from my own research I noticed that SelectMany() might be the ‘father’ of all other select operations.
I’d like to know how to use SelectMany() . It seems to take so
Share
Select many allows you to select a property from your query source that is an IEnumerable<T> collection, but instead of returning a collection of collections (IEnumerable<IEnumerable<T>>) it will flatten the collections into a single collection.
Here’s an example that you can run to demonstrate the differences between Select and SelectMany:
By using SelectMany you make it easier to query values within child collections.