Table of Contents

Enum UnaryOperatorType

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll
public enum UnaryOperatorType

Fields

AddressOf = 10

Get address (&a)

Any = 0

Any unary operator (used in pattern matching)

Await = 11

C# 5.0 await

BitNot = 2

Bitwise not (~a)

Decrement = 6

Pre decrement (--a)

Dereference = 9

Dereferencing (*a)

Increment = 5

Pre increment (++a)

IndexFromEnd = 16

C# 8 prefix ^ operator

IsTrue = 14

Implicit call of "operator true".

Minus = 3

Unary minus (-a)

Not = 1

Logical not (!a)

NullConditional = 12

C# 6 null-conditional operator. Occurs as target of member reference or indexer expressions to indicate ?. or ?[]. Corresponds to nullable.unwrap in ILAst.

NullConditionalRewrap = 13

Wrapper around a primary expression containing a null conditional operator. Corresponds to nullable.rewrap in ILAst. This has no syntax in C#, but the node is used to ensure parentheses are inserted where necessary.

PatternNot = 17

C# 9 not pattern

PatternRelationalGreaterThan = 20

C# 9 relational pattern

PatternRelationalGreaterThanOrEqual = 21

C# 9 relational pattern

PatternRelationalLessThan = 18

C# 9 relational pattern

PatternRelationalLessThanOrEqual = 19

C# 9 relational pattern

Plus = 4

Unary plus (+a)

PostDecrement = 8

Post decrement (a--)

PostIncrement = 7

Post increment (a++)

SuppressNullableWarning = 15

C# 8 postfix ! operator (dammit operator)