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
Is list passed by reference c#?
In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?
Is typeof c#?
Is there hashmap in c#?
What is jit (just in time)?
What is pure abstract class in c#?
What debugging tools come with the .NET ssSDK?
List down the access modifiers available in c#?
What is native image generator (ngen.exe)?
What is a namespace server?
What is meaning of type safety in c#?
What is yield return in c#?
What is #region in c#?
What is the difference between malloc () and new?
What are extensions methods in c#?