What is the difference between System.String and
System.StringBuilder classes?
Answer Posted / anonymous
The performance of your program is improved by using String
builder. When trying to concatenate old string + new
string...A new memory is allocated for the new string and
the old one is copied onto the new one. This is quite a
lengthy procedure, though it happens internally, it will
have a major impact on the performance of your program. To
overcome, this problem you can go for String builder.
| Is This Answer Correct ? | 23 Yes | 0 No |
Post New Answer View All Answers
What is the difference between // comments, /* */ comments and /// comments?
Can we declare class as protected?
What is overloading in c#?
Is std :: string null terminated?
How do you sort a list in c#?
What is the default value of decimal in c#?
Why do we use parameters in c#?
what is full assembly reference
Which function is the entry point for a DLL in MS Windows 3.1?
What do u mean by delegation?
What is Implementation inheritance and interface inheritance?
What is type class in c#?
what is a enumeration in c#
What is appdomain in c#?
Why do we need abstract class?