Thursday, July 30, 2009

Use of += in C#.net?

+= is a C standard, not specific to C#. Such as...





b=9;


a=1;


a+=b; // a=10

Use of += in C#.net?
The statement





a += b





is simply shorthand for the statement





a = a + b





in C, C++ and C#


No comments:

Post a Comment