C# Double Question mark Operator (null-coalescing operator)

In C#, the Double Question Mark (??) operator is introduced in C# 7.x version. The operator has 2 operands and it returns the left operand if the left operand if it is not null, otherwise, returns the right operand. In above code, since the left operand (i.e. language) is not null, the output is “German”. …

C# Double Question mark Operator (null-coalescing operator) Read More »