LINQ SelectMany in Depth

The Utility Knife for Nested Collections

In this article, I’ll walk through the various overloads and usages of LINQ’s methods.

is in many ways the opposite of which I covered last time in this series on LINQ. While took a single collection and transformed it into multiple child collections, flattens child collections into a single merged collection.

So, how is this flattening actually useful?

Basic SelectMany Operations



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matt Eland

I help people love writing code through writing, speaking, and teaching on Software Engineering & Data Science