0 votes
in C Sharp by

What’s the advantage of using System.Text.StringBuilder over System.String?

1 Answer

0 votes
by

StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text. Strings are immutable, so each time it’s being operated on, a new instance is created.

Related questions

0 votes
asked Jul 24, 2023 in Design Patterns by SakshiSharma
0 votes
asked Mar 5, 2020 in C Sharp by JackTerrance
...