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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access