Tag Archives: Operator

The Null-Coalescing Operator

C#’s null-coalescing operator (??) simplifies the syntax required to say “the value of an expression is x unless x is null in which case the value is y.” Suppose we want to set the variable salary to a value fetched … Continue reading

Posted in Programming | Tagged , | Leave a comment