OperatorKind Enum
Specifies the kind of an operator.
public enum OperatorKind
Fields
| Name | Description |
|---|---|
| Addition | An addition operator. |
| AddressOf | An address-of operator. |
| BitwiseAnd | A bitwise AND operator. |
| BitwiseOr | A bitwise OR operator. |
| ConditionalAnd | A conditional AND binary operator. |
| ConditionalOr | A conditional OR binary operator. |
| Division | A division operator. |
| ExclusiveOr | A bitwise XOR operator. |
| ExplicitCast | An explicit cast operator. |
| Exponentiation | An exponentiation operator.
Used in Visual Basic only ( |
| GreaterThan | A greater than operator. |
| GreaterThanOrEqual | A greater than or equal operator. |
| ImplicitCast | An implicit cast operator. |
| IndexFromEnd | An index-from-end operator.
Used in C# 8 or later only ( |
| IntegerDivision | An integer division operator.
Used in Visual Basic only ( |
| IsFalse | A false operator. |
| IsTrue | A true operator. |
| LeftShift | A left shift operator. |
| LessThan | A less than operator. |
| LessThanOrEqual | A less than or equal operator. |
| Modulus | A modulus operator. |
| Multiplication | A multiplication operator. |
| Negation | A negation operator. |
| None | No valid operator kind. |
| NullCoalescing | A null coalescing operator. |
| NullForgiving | A null-forgiving operator.
Used in C# only ( |
| OnesComplement | A bitwise complement operator. |
| PointerIndirection | A pointer indirection operator. |
| PostDecrement | An post-decrement operator. |
| PostIncrement | An post-increment operator. |
| PreDecrement | An pre-decrement operator. |
| PreIncrement | An pre-increment operator. |
| Range | A range operator.
Used in C# 8 or later only ( |
| ReferenceEquality | A reference equality operator.
Used in Visual Basic only ( |
| ReferenceInequality | A reference inequality operator.
Used in Visual Basic only ( |
| RightShift | A right shift operator. |
| StringConcatenation | A concatenation operator (&). Used in Visual Basic only. |
| Subtraction | A subtraction operator. |
| UnsignedRightShift | An unsigned right shift operator. Used in C# 11 or later only. |
| ValueEquality | A value equality operator. |
| ValueInequality | A value inequality operator. |
| WildcardPatternMatch | A string wildcard pattern match operator.
Used in Visual Basic only ( |