-->

What’s the difference between System.String and System.StringBuilder classes?

While System.String is immutable, meaning its value cannot be changed once it’s created, System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed. StringBuilder is more efficient for scenarios where you need to make many modifications to a string, as it avoids the overhead of creating a new string instance for each change.

Comments