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!

Encoding.GetDecoder

Returns a decoder object for this instance of encoding.

[Visual Basic]
Overridable Public Function GetDecoder() As Decoder
[C#]
public virtual Decoder GetDecoder();
[C++]
public: virtual Decoder* GetDecoder();
[JScript]
public function GetDecoder() : Decoder;

Return Value

Returns a Decoder object for this encoding. The decoder object can be used to decode a sequence of bytes into characters.

Remarks

Contrary to the GetChars 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 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.

See Also

Encoding Class | Encoding Members | System.Text Namespace | GetCharCount | GetChars