Throws DecoderFallbackException when an encoded input byte sequence cannot be converted to a decoded output character. This class cannot be inherited.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Fallback||Throws DecoderFallbackException when the input byte sequence cannot be decoded. The nominal return value is not used. (Overrides DecoderFallbackBuffer.Fallback(Byte, Int32).)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetNextChar||Retrieves the next character in the exception data buffer. (Overrides DecoderFallbackBuffer.GetNextChar().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|MovePrevious||Causes the next call to GetNextChar to access the exception data buffer character position that is prior to the current position. (Overrides DecoderFallbackBuffer.MovePrevious().)|
|Reset||Initializes all data and state information pertaining to this fallback buffer. (Inherited from DecoderFallbackBuffer.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
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 Fallback method, which throws DecoderFallbackException.
The System.Text.DecoderFallbackBuffer class, which represents a data buffer used in a decoding operation, is the base class for the class. However, instead of a data buffer, the 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.