System.Text.DecoderExceptionFallbackBuffer Class

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

See Also: DecoderExceptionFallbackBuffer Members


public sealed class DecoderExceptionFallbackBuffer : DecoderFallbackBuffer


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 byte sequence cannot be converted to an output character, the decoding operation calls the DecoderExceptionFallbackBuffer.Fallback(Byte[], int) method, which throws System.Text.DecoderFallbackException.

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


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