i == 5 ? (b = 2) : (b = 4);
b = i == 5 ? 2 : 4;
(i==5?b)=(2:b)=4;>/pre> And goes "Eh? You what? That isn't an LValue!" The left hand side of <code>a = b </code> must be an LValue - a value that can be assigned to, not a constant, or a result.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)