0
Answer

Null coalescing Operator

Ask a question
  • If the first operand is not null, then the overall expression has the value of the first operand.
  • If the first operand is null, then the overall expression has the value of the second operand.


For example:

int? a = null;

int b;

b = a ?? 10;        //b = 10

a = 3;

b = a ?? 10;        //b = 3