# Types of Operators

Assignment Operator An assignment operator is the operator used to assign a new value to a variable, property, event or indexer element in C# programming language. Assignment operators can also be used for logical operations such as bitwise logical operations or operations on integral operands and Boolean operands.

Bitwise Operators Bitwise Operator Definition - A bitwise operator is an operator used to perform bitwise operations on bit patterns or binary numerals that involve the...

Logical Operators Logical operators are typically used with Boolean (logical) values. When they are, they return a Boolean value. However, the && and || operators actually return the value of one of the specified operands, so if these operators are used with non-Boolean values, they may return a non-Boolean value.

Mathematical Operators In mathematics, an operator is generally a mapping that acts on the elements of a space to produce other elements of the same space. The most common operators are linear maps, which act on vector spaces.

image: tes.com
Relational Operators Operator chaining. In mathematics, it is common practice to chain relational operators, such as in 3 < x < y < 20 (meaning 3 < x and x < y and y < 20). The syntax is clear since these relational operators in mathematics are transitive.

image: youtube.com
Shift Operators The bitwise shift operators are the right-shift operator (>>), which moves the bits of shift_expression to the right, and the left-shift operator (<<), which moves the bits of shift_expression to the left.

image: youtube.com
Ternary Operator Operator (C# Reference) 07/20/2015; 2 minutes to read Contributors. all; In this article. The conditional operator (?:), commonly known as the ternary conditional operator, returns one of two values depending on the value of a Boolean expression.

Unary Operators The unary operators in C# are +, -,!, ~, ++, -- and the cast operator. The signature of the declaration of a unary operator includes the operator token and the type of parameter; it does not require the return type and the name of the parameter.