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
Can properties be overloaded in c#?
Why is c# used?
How can you set image source dynamically from c# application to ”test.png” file?
Which is faster dictionary or list?
How do you pronounce c#?
What is the difference between Decorator and Adapter pattern?
Explain the difference between Response.Write () and Response.Output.Write ().
What is string class in c#?
What is anonymous class in c#?
What is the namespace for datatable in c#?
What is .net console?
Can a constructor be private in c#?
If dll and exe files are same it means you can deploy both the files in gac?
1. Describe page life cycle?
Can you mark static constructor with access modifiers?