Error!
Success!

Chaining the C# ?? Operator

0
kicks

Chaining the C# ?? Operator  (Unpublished)

The C# 2.0 ?? operator makes it easy to assign a default value to nulls. Nothing new here, but did you know that you can also chain the operator to quickly check many value and find the first non-null value?


Kicked By:
Drop Kicked By: