What is different between string and string builder with respect to c# 3.5 and 4.0?

Posted by Allemahesh under C# on 7/15/2013 | Points: 10 | Views : 1546 | Status : [Member] [MVP] | Replies : 2
What is different between string and string builder with respect to c# 3.5 and 4.0?




Responses

Posted by: aswinialuri-19361 on: 7/15/2013 [Member] Starter | Points: 25

Up
0
Down
string builder is mutable
stringbuilder is used append keyword
StringBuilder is more efficient in the cases, where a lot of manipulation is done to the text.
Strings are immutable, so each time it’s being operated on, a new instance is created.


Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

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

Posted by: Allemahesh on: 7/15/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dear Aswini,
I know the basic different between string and string builder in 3.5.
My question is what is main different between string and string builder in c# 4.0 as compared to c# 3.5 framework.
This question is asked in one of my interview.
Can you help me.

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

Login to post response