Error!
Success!

[C# Tips] Null Coalescing Operator (??)

0
kicks

[C# Tips] Null Coalescing Operator (??)  (Unpublished)

Purpose : It returns the left-hand operand if it is not null; otherwise it returns the right operand. Eg : int y = x ?? -1; // y = x, unless x is null, in which case y = -1. Remarks : Equivalent of If [...]


Kicked By:
Drop Kicked By: