top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+1 vote
92 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 Google+ Share Button LinkedIn Share Button Multiple Social 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...