Mar 5, 2020 in C Sharp

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

1 Answer

0 votes
Mar 5, 2020

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
Oct 18, 2019 in C Sharp
  • stringbuilder
  • string-in-c#
0 votes
Mar 16 in JAVA
0 votes
Mar 15 in Secure Programming Practices