TypeName

IncrementDecrementSymbolsMustBeSpacedCorrectly

CheckId

SA1020

Category

Spacing Rules

Cause

An increment or decrement symbol within a C# element is not spaced correctly.

Rule Description

A violation of this rule occurs when the spacing around an increment or decrement symbol is not correct.

There should be no whitespace between the increment or decrement symbol and the item that is being incremented or decremented.

How to Fix Violations

To fix a violation of this rule, ensure that there is no whitespace between the increment or decrement symbol and the item that is being incremented or decremented.