What's the advantage of using System.Text.StringBuilder over
Answers were Sorted based on User's Feedback
Answer / prathap
StringBuilder is more efficient in the cases, where a lot of
manipulation is done to the text. Strings are immutable, so
each time it's being operated on, a new instance is created.
|Is This Answer Correct ?||23 Yes||1 No|
Answer / article
Mutable & Immutable
1)string is immutabel.
i.e. whenever you create any changes to a string a new
object is created in memory.
2)StringBuilder has advantage String
To overcome this the stringBuilder is provided we can make
ammendments to the stringBuilder object without creating a
new object. Therefore whenever a lot operations are to be
made on a string then StringBuilder should be used in place
Pradhan Prasanta Kumar
|Is This Answer Correct ?||9 Yes||3 No|
Answer / abhinay kumar
stiringbuilder is mutable but string is immutable
i.e mutable means that if we define a variable with
stringbuilder and assigne the value to another
stringbuilder variable and if we change the value then the
reflaction will be seen on the both variable (it made
change on the same memory location reference)
immutable means if we define a variable with string and
assigne the value to another string variable and if we
change the value then the reflaction will not be seen on
the both variable
|Is This Answer Correct ?||3 Yes||0 No|
In Code-Behind class which kind of code (server or client) is found ?
What are the features that make asp.net more used framework? : asp.net mvc
What asp.net control can embed xaml into asp.net pages?
How can I have a particular web page in an asp.net application which displays its own error page?
How to use class library reference in asp.net project? Can you give me the example with source Class library haves classes like Database, insert, update, delete, reflection how can i use the database class connection in insert class to insert the record in to the Main Project in asp.net.
why many web.config files are used in are project
What is http only cookie?
How to retrieve the information from datatable citywise in c#?
how can you handle "control is not part of this page " error?
What is content place holder?
hi .net gurus here is my question " how does impersonate in asp.net works? explain with good example"
What is web.config file ?