What’s the difference between System.String and
System.Text.StringBuilder classes with example
Answers were Sorted based on User's Feedback
Answer / sudha
System.string works on copy of string data.
System.Text.StringBuilder works on actuval string data
Is This Answer Correct ? | 9 Yes | 2 No |
Answer / 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 |
What is ildasm and obfuscator in net?
What is the use of convert toint32 in c#?
How To Maintain Transaction In C#?
1 Answers Phoenix Technologies,
Explain the use of SN.exe
What is shared inheritance
What is an icollection in c#?
What is array and types of array in c#?
Explain the feature of c# language?
What is the difference between add and addrange in c#?
What is windows form in c#?
What does using system mean in c#?
What is Wrapper class in dot net?