Permalink
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (35 sloc) 1.06 KB

RCS1205: Reorder named arguments according to the order of parameters

Property Value
Id RCS1205
Category Readability
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

using (var sm = new StreamReader(
    stream: default(Stream),
    encoding: Encoding.UTF8,
    bufferSize: 0, // RCS1205
    leaveOpen: false,
    detectEncodingFromByteOrderMarks: true))
{
}

Code with Fix

using (var sm = new StreamReader(
    stream: default(Stream),
    encoding: Encoding.UTF8,
    detectEncodingFromByteOrderMarks: true,
    bufferSize: 0,
    leaveOpen: false))
{
}

See Also

(Generated with DotMarkdown)