Skip to main content

Swap binary operands

PropertyValue
IdRR0159
Applicable Syntaxbinary expression
Syntax Spanbinary operator
Enabled by Default

Usage

Example #1

before.cs
if (x && y)
{
{
after.cs
if (y && x)
{
{

Configuration

roslynator_refactoring.swap_binary_operands.enabled = true|false