Jon Skeet [C# MVP] wrote:
> Where you *would* get penalties (very small, admittedly) would be to
> write it as:
>
> string x = "first line";
> x += "second line";
> x += "third line";
>
Yes, the performance penalty is small in this case, compared to the time
it will take to make the database call.
It might be worth to mention, however, that you should be careful when
you concatenate strings that way, as it scales very badly. It should
only be used when the number of strings are known beforehand, as the
execution time increases exponentially to an increase in number of strings.
--
Göran Andersson
_____
http://www.guffa.com