[IronPython] List<Python Class>

Matthew Barnard m.stephen.barnard at gmail.com
Fri May 2 18:30:52 PDT 2008


Is the following the only way to create a generic containing a python class?


from System.Collections.Generic import List
from System import Type

class Foo:
    >>class stuff<<

l = List[Type.GetType(Foo())]()


I assume this is the nature of dynamic typing, but is there a way to get the
type from the classobj, and not an instance?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080502/425f6e72/attachment.htm>


More information about the Users mailing list