Skip to main content

RCS1201: Use method chaining

Properties​

PropertyValue
Default SeverityHidden
Minimum language version-

Examples​

Example #1​

diagnostic.cs
sb = new StringBuilder();

sb.Append("a");
sb.Append("b");
sb.Append("c");
fix.cs
sb = new StringBuilder();

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

Applies to​