top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+1 vote
517 views
What are the differences between System.String and System.Text.StringBuilder classes in C#?
posted Mar 24, 2014 by Aastha Joshi

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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 the concept of a mutable string where a variety of operations can be performed without allocating separate memory location for the modified string.

answer Mar 25, 2014 by Pavan P Naik
...