Returns a decoder for the current instance of encoding.
[Visual Basic] Overrides Public Function GetDecoder() As Decoder [C#] public override Decoder GetDecoder(); [C++] public: override Decoder* GetDecoder(); [JScript] public override function GetDecoder() : Decoder;
A Decoder object for this encoding. The returned object can be used to decode a sequence of bytes into a sequence of characters.
Contrary to GetChars, a decoder can convert partial sequences of bytes into partial sequences of characters by maintaining the appropriate state between the conversions.
This default implementation returns a Decoder that simply forwards calls to GetCharCount and GetChars 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 decoder implementation.
UTF8Encoding Class | UTF8Encoding Members | System.Text Namespace | GetCharCount | GetChars