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!

UnicodeEncoding.GetEncoder

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;

Return Value

An Encoder for this encoding.

Remarks

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.

See Also

UnicodeEncoding Class | UnicodeEncoding Members | System.Text Namespace | GetByteCount | GetBytes | Encoder