Just a beginner tip. Many programmers still use
concatenations in the classical way. An example situation like this - Adding and deleting
s mutable? NO. So what is the best way to concatenate
. From Framework 3.5, it is available through the Microsoft Ajax Library. Enable Ajax in the page by using a
. Now the
class is available for use.
<asp:ScriptManager ID="script1" runat ="server">
var sb = new Sys.StringBuilder();
How does a
builder do concatenation efficiently? It uses an
to hold the
s, then uses the
to concatenate the
s. So intermediate
generations are avoided.