Returns an encoder for the current instance of encoding.
[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 the current encoding.
The encoder can be used to encode a sequence of characters into a sequence of bytes.
Unlike GetBytes, an encoder can convert partial sequences of characters into partial sequences of bytes by maintaining the appropriate state between the conversions.
The 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.
UTF7Encoding Class | UTF7Encoding Members | System.Text Namespace | GetByteCount | GetBytes