What’s the advantage of using System.Text.StringBuilder
over System.String?
Answer Posted / panchdev
stringbuilder:-
1-This class represents a string-like object whose value is a mutable sequence of characters.
2- The value is said to be mutable because it can be modified once it has been created by appending, removing, replacing, or inserting characters. For comparison, see the String class.
3-The default capacity for this implementation is 16, and the default maximum capacity is Int32.
string:-
1-A String object is called immutable (read-only) because its value cannot be modified once it has been created. Methods that appear to modify a String object actually return a new String object that contains the modification. If it is necessary to modify the actual contents of a string-like object, use the System.Text.StringBuilder class.
Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
mention what is csdl, ssdl and msl sections in an edmx file?
what is entity graph in entity framework?
In Server how to check whether model has error or not in ASP.Net MVC
What is net framework 3.0 ?
What type of filter does outputcacheattribute class represents?
What is ViewData and TempData in ASP.Net MVC?
What is the .net framework 3.0 (formerly winfx)?
Can we change web.config settings from iis?
Describe the .net framework architecture.
How does the .net framework 3.0 relate to the .net framework 2.0?
What is route config?
What are child actions in ASP.Net MVC?
Explain what languages does the .net framework support?
what is entity framework?
Can you explain the page life cycle of mvc?