Mono Class Library: System.Text.Encoding Overview | Members

System.Text.Encoding.GetDecoder Method

Returns a System.Text.Decoder for the current instance. [Edit]

public virtual Decoder GetDecoder ()

Returns

A System.Text.Decoder for the current instance. [Edit]

Remarks

Operation
As described above.

The default implementation returns a System.Text.Decoder that forwards calls made to the Encoding.GetCharCount(Byte[]) and Encoding.GetChars(Byte[]) methods to the corresponding methods of the current instance.

Note to Inheritors
Encoding that requires state to be maintained between successive conversions should override this method and return an instance of an appropriate System.Text.Decoder implementation.

Usage
Unlike the Encoding.GetChars(Byte[]) methods, a System.Text.Decoder can convert partial sequences of bytes into partial sequences of characters by maintaining the appropriate state between the conversions.

[Edit]

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0