how to use stringbuilder

Posted by Gow.net under C# on 12/15/2011 | Points: 10 | Views : 2101 | Status : [Member] | Replies : 5
i need how to use stringbuilder in c# windows applicaton and what the advantage in stringbuilder compare string

gowthaman8870226416


Responses

Posted by: Sksingh on: 12/15/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

Refer http://msdn.microsoft.com/en-us/library/2839d5h5(v=vs.71).aspx

Regards,
Sunil

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

Posted by: Gow.net on: 12/15/2011 [Member] Starter | Points: 25

Up
0
Down
thanks for your replay

gowthaman8870226416

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

Posted by: Hmanjarawala on: 12/15/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,

refer this
http://msdn.microsoft.com/en-us/library/2839d5h5(v=VS.110).aspx
http://www.codeproject.com/KB/string/string.aspx
http://www.codeproject.com/KB/cs/StringBuilder_vs_String.aspx


Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

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

Posted by: perfectchourasia-9163 on: 12/21/2011 [Member] Starter | Points: 25

Up
0
Down
using System;
using System.Text;

class Program
{
static void Main()
{
StringBuilder builder = new StringBuilder();
// Append to StringBuilder.
for (int i = 0; i < 10; i++)
{
builder.Append(i).Append(" ");
}
Console.WriteLine(builder);
}
}

ER sandeep chourasia
sandeepchrs@yahoo.com (on facebook)
http://www.aspnetcodes.com/

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

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

Login to post response