This is Null Coalescing Operator Example. If (a == null)
int b = a ?? -1;
it means if the value of a is null then b=a other wise the value of b will be -1.
Simply this mean
b = a;
Else
b = -1;
Loading
This is Null Coalescing Operator Example. If (a == null)
int b = a ?? -1;
it means if the value of a is null then b=a other wise the value of b will be -1.
Simply this mean
b = a;
Else
b = -1;
Join the conversation! Your thoughts help the community grow.