Invert prefix/postfix unary operator
Property | Value |
---|---|
Id | RR0134 |
Applicable Syntax | prefix/postfix unary expression |
Syntax Span | operator 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