Why string is immutable

Posted by Ray.chayan under C# on 6/28/2010 | Views : 5189 | Status : [Member] | Replies : 3
Why string is immutable . what happend in case of string in CLR . What is the difference from StringBuilder?




Responses

Posted by: Raja on: 6/28/2010 [Member] Starter
Posted by: BangaruBabu on: 6/28/2010 [Member] Starter

Up
0
Down
http://channel9.msdn.com/forums/TechOff/58729-Why-are-string-types-immutable-in-C/

BangaruBabu Pureti
http://bangarubabupureti.spaces.live.com/

Ray.chayan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Santoshkumar on: 6/29/2010 [Member] Starter

Up
0
Down
String is immutable we can create objects using string and the perfomance will be less. where as
string builder is mutable the performance will be more.

Ray.chayan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response