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 sqlcommandbuilder c#?
what is webapplication? what is windows application? what is the extension for both . in what purpose we r using webapplication. in which situation we r using windowns application
What is c# used for?
What are native functions?
What is a clr (common language runtime)?
Why is .net so popular?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
Does the variables of a private class-level inherited?
Why attributes are used in c#?
In .Net, what is an assembly? Also explain the type of assembly.
What is the state of Garbage Collection after dispose() call info C# code?
What is a linked list 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)