diff --git a/src/EditorFeatures/CSharp/StringCopyPaste/KnownSourcePasteProcessor.cs b/src/EditorFeatures/CSharp/StringCopyPaste/KnownSourcePasteProcessor.cs index ca6ff2e2cf1d8..9d228e294a664 100644 --- a/src/EditorFeatures/CSharp/StringCopyPaste/KnownSourcePasteProcessor.cs +++ b/src/EditorFeatures/CSharp/StringCopyPaste/KnownSourcePasteProcessor.cs @@ -306,7 +306,7 @@ private TextChange GetContentEditForRawString( } else { - builder.Append(new string('{', dollarSignCount)); + builder.Append('{', dollarSignCount); builder.Append(content.InterpolationExpression); builder.Append(content.InterpolationAlignmentClause); @@ -316,7 +316,7 @@ private TextChange GetContentEditForRawString( builder.Append(content.InterpolationFormatClause); } - builder.Append(new string('}', dollarSignCount)); + builder.Append('}', dollarSignCount); } } else