In c#, is there any difference (semantics, efficiency, etc.) between writing x = x + 1
and x += 1
? Is it compiled to the same thing? Or optimized in some way?
For me, looks like it should be the same or +=
should be "optimized" as x = x + ...
, but is it?