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

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

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

Public Member Functions

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

Protected Member Functions

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

Properties

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

Detailed Description

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

Definition at line 8 of file EncoderFallback.cs.

Constructor & Destructor Documentation

◆ EncoderFallback()

System.Text.EncoderFallback.EncoderFallback ( )
protected

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

Definition at line 91 of file EncoderFallback.cs.

Member Function Documentation

◆ CreateFallbackBuffer()

abstract EncoderFallbackBuffer System.Text.EncoderFallback.CreateFallbackBuffer ( )
pure virtual

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

Returns
An object that provides a fallback buffer for an encoder.

Implemented in System.Text.EncoderReplacementFallback, and System.Text.EncoderExceptionFallback.

Property Documentation

◆ ExceptionFallback

EncoderFallback System.Text.EncoderFallback.ExceptionFallback
staticget

Gets an object that throws an exception when an input character cannot be encoded.

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

Definition at line 57 of file EncoderFallback.cs.

◆ MaxCharCount

abstract int System.Text.EncoderFallback.MaxCharCount
get

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

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

Definition at line 79 of file EncoderFallback.cs.

◆ ReplacementFallback

EncoderFallback System.Text.EncoderFallback.ReplacementFallback
staticget

Gets an object that outputs a substitute string in place of an input character that cannot be encoded.

Returns
A type derived from the T:System.Text.EncoderFallback class. The default value is a T:System.Text.EncoderReplacementFallback object that replaces unknown input characters with the QUESTION MARK character ("?", U+003F).

Definition at line 35 of file EncoderFallback.cs.


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