Export (0) Print
Expand All

EncoderReplacementFallbackBuffer Class

Note: This class is new in the .NET Framework version 2.0.

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
public final class EncoderReplacementFallbackBuffer extends EncoderFallbackBuffer
public final class EncoderReplacementFallbackBuffer extends 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 on which the character to encode is not represented.

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 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft