Skip to main content

Invert prefix/postfix unary operator

PropertyValue
IdRR0134
Applicable Syntaxprefix/postfix unary expression
Syntax Spanoperator token
Enabled by Default

Usage

Example #1

before.cs
int i = 0;

i++;
after.cs
int i = 0;

i--;

Example #2

before.cs
int i = 0;

++i;
after.cs
int i = 0;

--i;

Configuration

roslynator_refactoring.invert_prefix_or_postfix_unary_expression.enabled = true|false