System.Text.EncoderExceptionFallbackBuffer Class

Throws System.Text.EncoderFallbackException when an input character cannot be converted to an encoded output byte sequence. This class cannot be inherited.

See Also: EncoderExceptionFallbackBuffer Members

Syntax

public sealed class EncoderExceptionFallbackBuffer : EncoderFallbackBuffer

Remarks

A common reason for an encoding or decoding operation to fail is if the underlying encoding class does not provide a mapping between a character and an equivalent byte sequence. If the input character cannot be converted to an output byte sequence, the encoding operation calls the erload:System.Text.EncoderExceptionFallbackBuffer.Fallback method, which throws System.Text.EncoderFallbackException.

The System.Text.EncoderFallbackBuffer class, which represents a data buffer used in an encoding operation, is the base class for the System.Text.EncoderExceptionFallbackBuffer class. However, instead of a data buffer, the System.Text.EncoderExceptionFallbackBuffer class represents a standard behavior wherein an exception is thrown if an encoding operation fails. No actual data buffer exists, and the members designed to manipulate such a buffer do no significant work.

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0