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 are the types of assembly available
What is the main method?
In c#.Net Application For DataGridview binding which method is faster in below two case?Why..? 1)looping-Using For loop 2)Databinding direct using Dataset
What is private readonly in c#?
how to retrive a TextBox value in to Sql database using C# windows form application coding
Describe the process of “exception handling implementation” in c#?
Can namespace contain the private class?
What is asp net c# corner?
What is Web.config?
How does a while loop work?
Why extension method is static?
Can you declare the override method static while the original method is non-static?
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)