Throws EncoderFallbackException when an input character cannot be converted to an encoded output byte sequence. 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(Char, Int32)||Throws an exception because the input character cannot be encoded. Parameters specify the value and index position of the character that cannot be converted. (Overrides EncoderFallbackBuffer.Fallback(Char, Int32).)|
|Fallback(Char, Char, Int32)||Throws an exception because the input character cannot be encoded. Parameters specify the value and index position of the surrogate pair in the input, and the nominal return value is not used. (Overrides EncoderFallbackBuffer.Fallback(Char, Char, Int32).)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetNextChar||Retrieves the next character in the exception fallback buffer. (Overrides EncoderFallbackBuffer.GetNextChar().)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|MovePrevious||Causes the next call to the GetNextChar method to access the exception data buffer character position that is prior to the current position. (Overrides EncoderFallbackBuffer.MovePrevious().)|
|Reset||Initializes all data and state information pertaining to this fallback buffer. (Inherited from EncoderFallbackBuffer.)|
|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 character cannot be converted to an output byte sequence, the encoding operation calls the Fallback method, which throws EncoderFallbackException.
The System.Text.EncoderFallbackBuffer class, which represents a data buffer used in an encoding operation, is the base class for the class. However, instead of a data buffer, the 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.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.