J
Jon Slaughter
If StringBuilder has the ability to Insert and Remove then why not EndsWith
and StartsWith? Hell, why not even something like Substring and Split which
would return strings(or even stringbuilders)
To me this class seems to be the most useless class?
I'm building up a very large string from network data by appending text data
together. Once that is done I want to parse the text. Using StringBuilder
only seems to help in one respect while using a string only in the
other(well, it does both but slow on appending). Surely there is something
that has the best of both worlds.
Do I need to convert the StringBuilder into a string after I do the
appending? (I'm worried about performance impact of this when it seems there
is no real reason for it)
(I just don't see why they couldn't have added more functionality to
StringBuilder)
Thanks,
Jon
and StartsWith? Hell, why not even something like Substring and Split which
would return strings(or even stringbuilders)
To me this class seems to be the most useless class?
I'm building up a very large string from network data by appending text data
together. Once that is done I want to parse the text. Using StringBuilder
only seems to help in one respect while using a string only in the
other(well, it does both but slow on appending). Surely there is something
that has the best of both worlds.
Do I need to convert the StringBuilder into a string after I do the
appending? (I'm worried about performance impact of this when it seems there
is no real reason for it)
(I just don't see why they couldn't have added more functionality to
StringBuilder)
Thanks,
Jon