Most of the assignment operators are vb.net new operators, except for "=" (Assignment number), other assignment operators generally perform arithmetic operations when assigning values to variables, such as: i+=1 equivalent to I=i+1
The following table is the commonly used assignment operator:
| Operator |
Name |
Type |
Description |
| = |
Assignment number |
Binocular operator |
The second action number is passed to the first operand |
| += |
Plus equals |
Binocular operator |
The first operand plus the second operand is passed to the first operand |
| -= |
Minus equals |
Binocular operator |
The first operand minus the second operand is passed to the first operand |
| *= |
by equals sign |
Binocular operator |
The first operand multiplied by the second operand to the first operand |
| /= |
floating-point except equals sign |
Binocular operator |
The first operand is passed to the first operand divided by the second operand |
| \= |
Divide equals |
Binocular operator |
The first operand is divisible by the second operand to the first operand |
| ^= |
To refer to an equal sign |
Binocular operator |
The first operand is multiplied by the second operand, and passed to the first operand several times |
| &= |
Connect equals sign |
Binocular operator |
The first operand connects the second operand to the first operand |