3.11. System.Text namespace
The System.Text namespace contains classes representing various character encoding and conversions, as well as providing helper classes for manipulating and formatting String objects.
The StringBuilder class can be used in conjunction with the String class to manipulate a string. This class is useful in situations when we need to modify a contents of a String – insert, replace, or remove characters – without creating a new string.
To perform the desired operations we use the Insert, Replace, and Remove methods of the StringBuilder class. Access to the character in the String is provided by the Chars property, which allows us to manipulate strings on a per character basis.
The System.Text namespace also contains several ...
Get A Programmer's Guide to .NET 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.