I would like to be able to fusion an IEnumerable<IEnumerable<T>> into IEnumerable<T> (i.e. merge all individual collections into one). The Union operators only applies to two collections. Any idea?
I would like to be able to fusion an IEnumerable<IEnumerable<T>> into IEnumerable<T> (i.e. merge
Share
Try
SelectMany is a LINQ transformation which essentially says ‘For Each Item in a collection return the elements of a collection’. It will turn one element into many (hence SelectMany). It’s great for breaking down collections of collections into a flat list.