On MSDN, I found this sentence:
Result The operator is not considered a constant, even if both arguments are constants.
What does it mean? Do they mean that the compiler optimizer does not know that this value is constant? I do not see another way that this could be relevant.
Edit: And why is this not considered permanent? Is there a logical reason for this?
Edit: this piece of code gives a compiler error for x, but not for y, why ?:can it lead to a constant value, but ??can't?
const string NULL = null;
const string val = "value";
const string x = NULL ?? val;
const string y = NULL == null ? val : NULL;
vrwim source
share