[IronPython] clr.GetString, clr.GetBytes

Sanghyeon Seo sanxiyn at gmail.com
Tue Oct 24 02:24:15 CEST 2006


2006/10/24, Dino Viehland <dinov at exchange.microsoft.com>:
> Or are these helper methods to go from string -> byte array and back again

Yes.

> (presumably w/ some encoding as a parameter?).

No.

> If that's the case I'm not sure how this differs from System.Text.Encoding.GetString / GetBytes.

It doesn't. But which encoding? ASCII is not appropriate, since it
doesn't convert some byte arrays.

Let's say this way. clr.GetString would be equivalent to
StringOps.FromByteArray already in IronPython. clr.GetBytes would be
its reverse.

-- 
Seo Sanghyeon



More information about the Ironpython-users mailing list