All computation with a 'null' literal value is correct.
Thus, :
int? i = null + 10;
is correct. Its value is 'null' of type 'int?'.
It is the same for -, *, /...
Special case for comparison operators. Returned type is 'bool' (but still valid!)
Description
All computation with a 'null' literal value is correct.
Thus, :
int? i = null + 10;
is correct. Its value is 'null' of type 'int?'.
It is the same for -, *, /...
Special case for comparison operators. Returned type is 'bool' (but still valid!)