Permalink
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (27 sloc) 731 Bytes

Inline constant value

Property Value
Id RR0127
Title Inline constant value
Syntax expression that has constant value
Enabled by Default

Usage

Before

public const string Value = "x";

void Foo()
{
    string x = Value;
}

After

public const string Value = "x";

void Foo()
{
    string x = "x";
}

See Also

(Generated with DotMarkdown)