SelectMany Method

Learn how to flatten a collection of collections with the SelectMany method.

How to transform a collection of collections

We’ve seen the Select method to transform every element of a single collection. There is a similar method to work with a collection of collections, SelectMany.

The SelectMany method transforms a collection of collections into a flat collection. Other programming languages call it Flatten instead.

Get hands-on with 1200+ tech skills courses.