NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

CodePageEncoding.GetDecoder

Gets a decoder object 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;

Return Value

A decoder object for the current encoding.

Remarks

The decoder object can be used to decode a sequence of bytes into a sequence of characters.[RB8]

Contrary to the CodePageEncoding.GetChars family of methods, 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 the GetCharCount and GetChars methods of this encoding. Encoding that requires state to be maintained between successive conversions should override this method and return a new instance of an appropriate decoder implementation.

See Also

CodePageEncoding Class | CodePageEncoding Members | System.Globalization Namespace