Last Updated: February 25, 2016
·
742
· carlosnasillo

Null coalescing operator chaining

You can chain the '??' operator so that you can do a bunch of null comparisons.

string result = value1 ?? value2 ?? value3 ?? String.Empty;