Permalink
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (34 sloc) 833 Bytes

RCS1017: Avoid multiline expression body

Property Value
Id RCS1017
Category Style
Default Severity Info
Enabled by Default -
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

public string[] Foo() => new string[] // RCS1017
{
    "a",
    "b",
    "c"
};

Code with Fix

public string[] Foo()
{
    return new string[]
    {
        "a",
        "b",
        "c"
    };
}

See Also

(Generated with DotMarkdown)