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 c# in asp net?
Why is aws serverless?
I want to print "Hello" even before main() is executed. How will you achieve that?
what is inheritance and an example in vb.net and c# of when you might use it?
What is typeof undefined?
How to update the gui from another thread in c#?
What is sealed class in c#?
What are collection classes?
How do I declare a pure virtual function in c#?
Which namespaces are necessary to create a localized application?
What is difference between for and foreach in c#?
Can you change the value of a constant filed after its declaration?
What is string programming language?
What is multithreading? What are the problems that comes with multithreading and how to manage them?
What is the namespace for datatable in c#?