Inline constant value
Property | Value |
---|---|
Id | RR0127 |
Applicable Syntax | expression that has constant value |
Enabled by Default | ✓ |
Usage
Example #1
before.cs
public const string Value = "x";
void Foo()
{
string x = Value;
}
after.cs
public const string Value = "x";
void Foo()
{
string x = "x";
}
Configuration
roslynator_refactoring.inline_constant_value.enabled = true|false