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 LINQ Best Practices.