What is StringBuilder? [Resolved]

Posted by Rajendra.prasad under C# on 5/28/2010 | Views : 14046 | Status : [Member] | Replies : 9
Hi All,
What is StringBuilder?

Regards,
Rajendra




Responses

Posted by: Syedshakeer on: 6/2/2010 [Member] Starter | Points: 50

Up
0
Down

Resolved
Hi,
StringBuilder  is the best way to concatenate string.it doesnt take any time to concatenate string compare to normal string concatenate.you can concanate a string by using Append()  as follows

example:
StringBuilder sb1 = new StringBuilder("Shakeer ");
sb1.Append ("Hussain ");
Console.WriteLine(sb1.ToString());
output :ShakeerHussain




Syed Shakeer Hussain

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

Posted by: Neeks on: 7/16/2010 [Member] Bronze | Points: 50

Up
0
Down

Resolved
StringBuilder is a class which is used to manipulate the strings. You can manipulate the string with this without creating new memory allocation.

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

Posted by: Vuyiswamb on: 5/31/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Look at this
http://msdn.microsoft.com/en-us/library/system.text.stringbuilder.aspx

Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Neeks on: 7/16/2010 [Member] Bronze

Up
0
Down
You will get the difference between String and string builder from
http://www.allinterview.com/showanswers/63507.html

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

Posted by: Iluvdotnetfunda on: 3/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Syedshakeer,

Your answer about String Builder is Easy and simple to understand.

Thanks its solved my problem.

keep posting.....



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

Posted by: Vuyiswamb on: 3/27/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Please mark your post as "Resolved"


Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Muhsinathk on: 6/14/2012 [Member] Bronze | Points: 25

Up
0
Down
http://www.codeproject.com/Articles/6771/String-Vs-StringBuilder-C

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

Posted by: Muhsinathk on: 6/14/2012 [Member] Bronze | Points: 25
Posted by: Dipakagarwal on: 6/14/2012 [Member] Starter | Points: 25

Up
0
Down
String Builder
generally we use string builder in sharepoint to write CAML queries, string builder is a way to convert multi line text in to string...

Thanks Dipak Agarwal

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

Login to post response