mscorlib(4.0.0.0) API with additions
System.Text.DecoderFallback Class Referenceabstract

Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that cannot be converted to an output character. More...

Inheritance diagram for System.Text.DecoderFallback:
[legend]

Public Member Functions

abstract DecoderFallbackBuffer CreateFallbackBuffer ()
 When overridden in a derived class, initializes a new instance of the T:System.Text.DecoderFallbackBuffer class. More...
 

Protected Member Functions

 DecoderFallback ()
 Initializes a new instance of the T:System.Text.DecoderFallback class. More...
 

Properties

static DecoderFallback ReplacementFallback [get]
 Gets an object that outputs a substitute string in place of an input byte sequence that cannot be decoded. More...
 
static DecoderFallback ExceptionFallback [get]
 Gets an object that throws an exception when an input byte sequence cannot be decoded. More...
 
abstract int MaxCharCount [get]
 When overridden in a derived class, gets the maximum number of characters the current T:System.Text.DecoderFallback object can return. More...
 

Detailed Description

Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that cannot be converted to an output character.

Definition at line 8 of file DecoderFallback.cs.

Constructor & Destructor Documentation

◆ DecoderFallback()

System.Text.DecoderFallback.DecoderFallback ( )
protected

Initializes a new instance of the T:System.Text.DecoderFallback class.

Definition at line 93 of file DecoderFallback.cs.

Member Function Documentation

◆ CreateFallbackBuffer()

abstract DecoderFallbackBuffer System.Text.DecoderFallback.CreateFallbackBuffer ( )
pure virtual

When overridden in a derived class, initializes a new instance of the T:System.Text.DecoderFallbackBuffer class.

Returns
An object that provides a fallback buffer for a decoder.

Implemented in System.Text.DecoderReplacementFallback, and System.Text.DecoderExceptionFallback.

Property Documentation

◆ ExceptionFallback

DecoderFallback System.Text.DecoderFallback.ExceptionFallback
staticget

Gets an object that throws an exception when an input byte sequence cannot be decoded.

Returns
A type derived from the T:System.Text.DecoderFallback class. The default value is a T:System.Text.DecoderExceptionFallback object.

Definition at line 57 of file DecoderFallback.cs.

◆ MaxCharCount

abstract int System.Text.DecoderFallback.MaxCharCount
get

When overridden in a derived class, gets the maximum number of characters the current T:System.Text.DecoderFallback object can return.

Returns
The maximum number of characters the current T:System.Text.DecoderFallback object can return.

Definition at line 79 of file DecoderFallback.cs.

◆ ReplacementFallback

DecoderFallback System.Text.DecoderFallback.ReplacementFallback
staticget

Gets an object that outputs a substitute string in place of an input byte sequence that cannot be decoded.

Returns
A type derived from the T:System.Text.DecoderFallback class. The default value is a T:System.Text.DecoderReplacementFallback object that emits the QUESTION MARK character ("?", U+003F) in place of unknown byte sequences.

Definition at line 35 of file DecoderFallback.cs.


The documentation for this class was generated from the following file: