Exploring MoreLINQ Part 8 - FallbackIfEmpty

added by DotNetKicks
8/30/2018 2:09:22 PM

1446 Views

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.


0 comments