0 Comments Posted in:

The eighth video in my Exploring MoreLINQ series looks at the FallbackIfEmpty extension method. This one is quite simple, but nevertheless useful. It allows you to specify a value (or values) that should be returned from the sequence if the input sequence is empty. So its a great way of setting up default values.

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. I'm also speaking on LINQ at Techorama Netherlands 2018 on 3rd October, so I'd love to see you there if you can make it.
Vote on HN