Creating and Manipulating a String in C#

One of the most fundamental things that you will need to do as a computer programmer in any programming language is to work with strings: creating them, comparing them, searching them for subvalues, concatenating them, and parsing them. The biggest problem with string manipulation in C and C++ on the Windows platform is that there are so many ways to manipulate strings. The Windows platform supports strings with single-byte characters or wide characters or you can write code that is portable to both. There is a different set of string manipulation functions in the C and C++ runtime library for each of these character types. Of course, if you are using the MFC, it makes sense for you to use the CString ...

Get .NET and COM Interoperability Handbook, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.