Export (0) Print
Expand All

EncoderReplacementFallbackBuffer Class

Represents a substitute input string that is used when the original input character cannot be encoded. This class cannot be inherited.

Namespace:  System.Text
Assembly:  mscorlib (in mscorlib.dll)

public sealed class EncoderReplacementFallbackBuffer : EncoderFallbackBuffer

It might not be possible to convert a character to an equivalent encoded byte sequence if no suitable encoding exists. A common reason for an encoding to fail is if the conversion operation uses a code page that cannot represent the character to encode.

If the input character cannot be converted to an output byte sequence, a System.Text.EncoderReplacementFallback object provides a replacement string that is substituted for the original input character. The replacement string initializes the value of the EncoderReplacementFallback object, and the value of the EncoderReplacementFallback object initializes the value of an EncoderReplacementFallbackBuffer object. The value of an EncoderReplacementFallbackBuffer object is called the replacement fallback buffer. The conversion operation encodes the replacement fallback buffer instead of the original input character, then continues to process the remainder of the input.

System.Object
  System.Text.EncoderFallbackBuffer
    System.Text.EncoderReplacementFallbackBuffer

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft