[IronPython] System.Byte[]

Keith J. Farmer kfarmer at thuban.org
Thu Oct 14 10:58:47 PDT 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
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 users-ironpython.com mailing list