The Assignment Operator : Assignment Operator : Operator C# Examples


C# Examples » Operator » Assignment Operator »

 

The Assignment Operator





It has this general form:




    
var  =  expression;
    
   
  
   

The general form of the shorthand is




    
var  op  =  expression;
    
   
  
   

Thus, the arithmetic and logical assignment operators are

+=
-=
*=
/=
%=
&=
|=
^=




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Operator
» Assignment Operator