C
Christof Nordiek
Hi,
in my Application i have to make a Copy of a StringBuilder,
so that, if the new old instance is changed, the you instance will not be
affected.
I could do something like
new StringBuilder(myStringBuilder.ToString())
but as i understand correct this would twice copy the content of my
StringBuilder
1. from StringBuilder to string
2. from string to StringBuilder.
Im using StingBuilder to prevent superfluous copying of large strings.
Christof
in my Application i have to make a Copy of a StringBuilder,
so that, if the new old instance is changed, the you instance will not be
affected.
I could do something like
new StringBuilder(myStringBuilder.ToString())
but as i understand correct this would twice copy the content of my
StringBuilder
1. from StringBuilder to string
2. from string to StringBuilder.
Im using StingBuilder to prevent superfluous copying of large strings.
Christof