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 ...
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