I need to add some lines to a StringBuilder, where the line added last should be at the beginning of the string and the oldest at the end. I add a new line like this:
<
We ran into the same issue with
Replace()
when we updated our web app from .net 2 to .net 4.
Apparently the implementation of StringBuilder changed. See
How the StringBuilder class is implemented? Does it internally create new string objects each time we append?
The solutions we looked at: