StringBuilder.Append(char)
CS-P1017The Append()
method in StringBuilder
has overloads that accept both string
and char
. If you wish to append a single char, consider calling Append(char)
over Append(string)
as the former is more performant.
stringBuilder.Append("a");
stringBuilder.Append('a');