The System.Text Namespace

Just about every business application you create will eventually require you to work with strings in some manner. String manipulation is a very common activity in most applications, but creating, adding to, and deleting from strings are expensive in terms of processor time and memory.

If you create a variable of type String, you are actually creating a String object; all base data types in .NET inherit from the base Object class, so all data types are actually objects. The contents of a String object cannot be changed once you've placed text into the string—in order to change its contents, you must place the return value of a method call into a new String object. For example, the String class provides a Remove method, ...

Get ASP.NET Developer's JumpStart 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.