[IronPython] System.Byte[]

Keith J. Farmer kfarmer at thuban.org
Thu Oct 14 19:58:47 CEST 2004


Sounds like a call for a CLR namespace in Python to disambiguate System
-- or at least aliases for the CLR types.

-----
Keith J. Farmer
http://www.thuban.org
kfarmer at thuban.org

-----Original Message-----
From: users-ironpython.com-bounces at lists.ironpython.com
[mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of
Brian Lloyd
Sent: 14 Oct 2004 09:00

  # gotta get this in an odd way - you cant say System.Byte
  # directly, because that gives you a Python type object 
  # rather than an actual System.Type instance...
  clrtype = System.Type.GetType('System.Byte')

  buffer = System.Array.CreateInstance(clrtype, 2048)




More information about the Ironpython-users mailing list