Windows Dev Center

System.Text Namespace

The System.Text namespace contains classes that represent Unicode character encodings; abstract base classes for converting blocks of characters to and from blocks of bytes; and a helper class that manipulates and formats String objects without creating intermediate instances of String.

The encoding classes are primarily intended to convert between different encodings or code pages and a Unicode encoding. Encoding.Unicode (UTF-16) encoding is used internally by the .NET Framework, and Encoding.UTF8 encoding is often used for storing character data to ensure portability across machines and cultures.

The StringBuilder class is designed for operations that perform extensive manipulations on a single string. Unlike the String class, the StringBuilder class is mutable and provides better performance when concatenating or deleting strings.

For more information about System.Text, see [bf6d9823-4c2d-48af-b280-919c5af66ae9] and the MSDN blog Shawn Steele's Thoughts about Windows and .NET Framework Globalization APIs.

Public classDecoderConverts a sequence of encoded bytes into a set of characters.
Public classDecoderFallbackExceptionThe exception that is thrown when a decoder fallback operation fails. This class cannot be inherited.
Public classEncoderConverts a set of characters into a sequence of bytes.
Public classEncoderFallbackExceptionThe exception that is thrown when an encoder fallback operation fails. This class cannot be inherited.
Public classEncodingRepresents a character encoding.
Public classStringBuilderRepresents a mutable string of characters. This class cannot be inherited.
Public classUnicodeEncodingRepresents a UTF-16 encoding of Unicode characters.
Public classUTF8EncodingRepresents a UTF-8 encoding of Unicode characters.

© 2015 Microsoft