Below is a list of some of the operators in C#
Arithmetic Operators
+ , – , * , / , %
Logical Operators
& , | , ^ , ~ , && , || , !
Increment and Decrement Operators
++ , —
Bit Shift Operators
<< , >>
Comparison Operators
== , != , <> , <= , >=
Assignment Operator
= , += , -= , *= , /= , |= , <<= , >>=
Indexing Operator for Array or List
[]
Ternary Operator
?:
Operator to create new instance
new
Name space alias qualifier
::
Null Coalescence Operator
??
Leave a Reply