Text

The FCL provides rich support for text. Important types include the System.String class for handling immutable strings, a StringBuilder class that provides string-handling operations with support for locale-aware comparison operations and multiple string encoding formats (ASCII, Unicode, UTF-7, and UTF-8), as well as a set of classes that provide regular expression support (see Chapter 6).

For more information, see the following namespaces:

System.Text
System.Text.RegularExpressions

An important related type in another namespace is System.String.

Get C# in a Nutshell 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.