Mega Code Archive

 
Categories / C# Tutorial / Operator
 

Operator list

Category                                          Operator Arithmetic                                        +-*/% Logical                                           &|^~&&||! String concatenation                              + Increment and decrement                           ++ -- Bit shifting                                      << >> Comparison                                        == != <> <= >= Assignment                                        =+=-=*=/=%=&=|=^=<<=>>= Member access (for objects and structs)           . Indexing (for arrays and indexers)                [] Cast                                              () Conditional (the Ternary Operator)                ?: Delegate concatenation and removal                +- Object Creation                                   new Type information                                  sizeof (unsafe code only) is typeof as Overflow exception control                        checked unchecked Indirection and Address                           *->& (unsafe code only) [] Namespace alias qualifier                         :: Null coalescing operator                          ??