c# - How to use the symbols +=, *=,-= -
These interfaces can be simple but the difficulty of finding explanations that is fixed and complete, prompted me to ask a similar mark ( Such as * =, - =, + =, etc.), what are the character combinations of an operand, what do they do and how are they useful (especially related to non-numeric fields)?
Examples and definitions will be highly appreciated.
Thanks
They usually widely Explain:
x + = y === x = x + y
(for operator's own choice etc.)
However ; In some languages you can bespoke + = operator *, or in some situations it can be interpreted differently; For example, in C # events, + = and - = mean "subscribe through ad accessor" and "Cancel membership via exit access" respectively.
Usually They are just space saver, but in some cases, may be meaningful difference.
* = Where I mean: Only +
operator and assignment
Comments
Post a Comment