What’s the difference between System.String and
System.Text.StringBuilder classes with example
Answer Posted / 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 |
Post New Answer View All Answers
How do you escape a character?
What is difference between abstraction and encapsulation in c#?
How to use exception handling in stored procedure?
What are Namespaces?
What problem does Delegate Solve?
Define delegate?
What is lazy loading and eager loading in c#?
What is uint c#?
Define the term immutable ?
Why do we use dataset in c#?
What are methods in C#?
What is indexer c#?
what is the difference between the debug class and trace class?
What is generic delegates in c#?
What is difference between events and delegates?