T
Tony Johansson
Hello!
string object are immutable but if I have this kind of construction se below
1.
will this be done so only one string object is created or will a new string
object
be created to concat This and is and then another string object be created
to concat Thisis and a and so on
1.
string test = "This" + "is" + "a" + "test";
So is the above construction the same as
this construction
string test;
test += "This";
test += "is";
test += "a";
test += "test";
//Tony
string object are immutable but if I have this kind of construction se below
1.
will this be done so only one string object is created or will a new string
object
be created to concat This and is and then another string object be created
to concat Thisis and a and so on
1.
string test = "This" + "is" + "a" + "test";
So is the above construction the same as
this construction
string test;
test += "This";
test += "is";
test += "a";
test += "test";
//Tony
