Permalink
707b719 Jun 13, 2018
1 contributor

Users who have contributed to this file

39 lines (28 sloc) 776 Bytes

RCS1169: Mark field as read-only

Property Value
Id RCS1169
Category Design
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

public class Foo
{
    private int _f; // RCS1169

    public Foo()
    {
        _f = 0;
    }
}

Code with Fix

private readonly int _f;

See Also

(Generated with DotMarkdown)