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

RCS1201: Use method chaining

Property Value
Id RCS1201
Category Simplification
Default Severity Hidden
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

sb = new StringBuilder();

sb.Append("a"); // RCS1201
sb.Append("b");
sb.Append("c");

Code with Fix

sb = new StringBuilder();

sb.Append("a")
    .Append("b")
    .Append("c");

See Also

(Generated with DotMarkdown)