Permalink
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (26 sloc) 845 Bytes

RCS1085: Use auto-implemented property

Property Value
Id RCS1085
Category Simplification
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer

Example

Code with Diagnostic

private string _foo;

public string Foo // RCS1085
{
    get { return _foo; }
    set { _foo = value; }
}

Code with Fix

public string Foo { get; set; }

See Also

(Generated with DotMarkdown)