0 Comments Posted in:

We're almost at the end of our exploring MoreLINQ series, and this time we're looking at Flatten. This lets you flatten an arbitrarily nested set of sequences into a single IEnumerable<object>.

I had hoped that this might be usable to do something like pull out all of the properties from a JObject at whatever level they were nested, although I wasn't able to see a way to achieve that with Flatten. However, in our final installment (hopefully tomorrow), we'll see a couple of more powerful methods that we could use for that purpose.

You can find all videos in this series here.

Want to learn more about LINQ? Be sure to check out my Pluralsight course More Effective LINQ.
Vote on HN