Returns an encoder for this instance of encoding. The encoder can be used to encode a sequence of characters into a sequence of bytes.
[Visual Basic] Overrides Public Function GetEncoder() As Encoder [C#] public override Encoder GetEncoder(); [C++] public: override Encoder* GetEncoder(); [JScript] public override function GetEncoder() : Encoder;
An Encoder for this encoding.
Contrary to GetBytes, an encoder can convert partial sequences of characters into partial sequences of bytes by maintaining the appropriate state between the conversions.
This default implementation returns an encoder that simply forwards calls to GetByteCount and GetBytes to the corresponding methods of this encoding. Encoding that requires state to be maintained between successive conversions should override this method and return an instance of an appropriate encoder implementation.
UnicodeEncoding Class | UnicodeEncoding Members | System.Text Namespace | GetByteCount | GetBytes | Encoder