o Strings themselves are immutable. All the operations such as
Substring, PadLeft, PadRight etc return a reference to a *new* string
with the appropriate data in.
o To avoid making multiple copies of data, if you're doing lots of
operations without needing the intermediate results as strings,
consider using a StringBuilder.
Jim,
Charles Petzold's book "Programming Microsoft Windows with Microsoft Visual
Basic .NET" from MS Press, has an appendix on Strings and an appendix on
Streams that I find to be good concise articles on Strings & Streams.
There is a C# version of the above book available, I would expect the same
appendixes.
Hope this helps
Jay
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.