LANGUAGE
Null coalescing ??
Returns the present left operand or evaluates the fallback for null. Zero and empty text do not trigger it.
Formal Syntax & Structure
csharp syntaxcsharp
value ?? fallbackWorking Example
Example Snippetcsharp
int? n = 0; int actual = n ?? 5;