By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,569 Members | 1,350 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,569 IT Pros & Developers. It's quick & easy.

C# String Manipulation

P: n/a
Does anyone know of a concise article that covers string manipulation, such
as insert, join, pad, etc.
Thanks,
Jim
Nov 15 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Jim McGivney <mc******@nospam.winid.com> wrote:
Does anyone know of a concise article that covers string manipulation, such
as insert, join, pad, etc.


I don't, but the basics are:

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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2

P: n/a
I'd start here in the MSDN documentation:
http://msdn.microsoft.com/library/de...classtopic.asp
Peter

"Jim McGivney" <mc******@nospam.winid.com> wrote in message
news:er**************@TK2MSFTNGP09.phx.gbl...
Does anyone know of a concise article that covers string manipulation, such as insert, join, pad, etc.
Thanks,
Jim

Nov 15 '05 #3

P: n/a
Here's a good book on it, apparently out of print already, but still
available used:

http://www.amazon.com/exec/obidos/AS...vingtoninnovat

Nov 15 '05 #4

P: n/a
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

"Jim McGivney" <mc******@nospam.winid.com> wrote in message
news:er**************@TK2MSFTNGP09.phx.gbl...
Does anyone know of a concise article that covers string manipulation, such as insert, join, pad, etc.
Thanks,
Jim

Nov 15 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.