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
Is nullable type c#?
What are constructors in c#?
What is a singleton unity?
What is a method signature in c#?
What is the difference between int and int in c#?
What is the difference between protected and private?
Explain the Different types of configuration files in .net?
What is void in c#?
Is there a way of specifying which block or loop to break out of when working with nested loops?
what is method overloading in c#?
how background thread access to ui control?
Can constructor have return type c#?
How many static constructors are allowed in a class?
What are synchronous and asynchronous operations?
How do I move from one form to another in c#?