Skip to main content

Split local declaration and assignment

PropertyValue
IdRR0194
Applicable Syntaxlocal variable declaration
Syntax Spanequals token
Enabled by Default

Usage

Example #1

before.cs
var s = GetValue();
after.cs
string s;
s = GetValue();

Configuration

roslynator_refactoring.split_local_declaration_and_assignment.enabled = true|false