What’s the difference between System.String and
System.Text.StringBuilder classes with example
Answers were Sorted based on User's Feedback
Answer / sudha
System.string works on copy of string data.
System.Text.StringBuilder works on actuval string data
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / puneet mishra
according to me difference between a string class and using String Builder is that in using a string class you need to create new object befour appending it to the main string but in string builder class one don`t need to create object every time
Example for string builder class:
using System.Text;
stringBuilder str = new stringBuilder;
str.append("");
in the previous example once u create str as new instance of string builder class u just have to append every thing in to the string
| Is This Answer Correct ? | 3 Yes | 2 No |
What is the use of protected in c#?
What is value c#?
What is assembly version series sequence?
What is the differnce between Array and Hash Table?
Explain what a diffgram, and a good use for one Define diffgram? How it be used?
Can an exception be thrown from a catch block?
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
What is a method c#?
What is the difference between delegates and superdelegates?
What is difference between an Structure and Class?
What is the difference between decimal and integer?
Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)