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
What is the difference between field and variable in c#?
What is the difference between an implicit conversion and an explicit conversion?
What is cts, clr?
What is immutable in C#?
What is a class level variable in c#?
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
Is it possible to have different access modifiers on the get/set methods of a property in c#?
Why dictionary is used in c#?
Wht executescaler method is used?
What is the difference between icomparer and icomparable in c#?
What is boxing & unboxing?
What is for loop in c#?
Can firstordefault return null?
What are the collection types can be used in c#?
Why do we use constructors in c#?