The Null-Coalescing Operators ?? and ??=

Give a stand-in for a null value with ??, try several values in turn with a ?? b ?? c, and fill in a variable only when it's null with ??=.

By

Updated

Cheat sheet: The Null-Coalescing Operators ?? and ??=
Category
C#
Level
Apprentice
Tags
c-sharp, Null Value, Null-Coalescing Assignment Operator, Null-Coalescing Operator