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

System.Text.Encoding.GetEncoder Method

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

public virtual Encoder GetEncoder ()

Returns

A System.Text.Encoder for the current encoding. [Edit]

Remarks

Operation
As described above.

The default implementation returns a System.Text.Encoder that forwards calls made to the Encoding.GetByteCount(Char[]) and Encoding.GetBytes(Char[]) methods to the corresponding methods of the current instance.

Note to Inheritors
Types derived from System.Text.Encoding override this method to return an instance of an appropriate System.Text.Encoder .

Usage
Unlike the Encoding.GetBytes(Char[]) method, a System.Text.Encoder can convert partial sequences of characters into partial sequences of bytes 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