+ 1
What does += means? And why we use it?
4 Respostas
+ 1
Why not to use x=x+y
than to use x+=y
+ 1
It reduces the amount of code needed. There are allot of ways to shorten your syntax when coding in C#, it all adds up with bigger projects!
It can result in smaller file sizes, quicker applications, and easier to read code.
+ 1
It's called as shorthand, it makes code easy and short
0
there are no real rules about wich one to use when. it Has more to do with readability.