Meziantou.Analyzer
Meziantou.Analyzer copied to clipboard
New rule: StringBuilder.AppendJoin
sb.Append(string.Join(',', new [] { "a", "b" }));
Should be:
sb.AppendJoin(',', new [] { "a", "b" });
Wait stringbulder can do that?
https://docs.microsoft.com/en-us/dotnet/api/system.text.stringbuilder.appendjoin?view=netcore-3.1
@AraHaan It's a new method since .NET Core 2.0.