[IronPython] clr.GetString, clr.GetBytes

Sanghyeon Seo sanxiyn at gmail.com
Mon Oct 23 17:24:15 PDT 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 users mailing list