140 Views
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 [...]
0 comments
Join in on a hand-picked round up of the best .NET articles every day.
Curated by our Moderators and Voted up by our Community. Free.
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 [...]