$0.4

Difference between String and StringBuilder c#.

Ask a question+
0

What are the differences between System.String and System.Text.StringBuilder classes?

add comment

1 Answer

1

System.String is immutable. When we modify the value of a string variable, then a new memory is allocated to the new value and the previous memory allocation released. System.StringBuilder was designed to have a concept of a mutable string where a variety of operations can be performed without allocation separate memory locations for the modified string.

Gor13666_ 900
add comment

Your Answer