If I wanted to write something like this:

    from System import DateTime

    runtimeType = typeof(DateTime)

    for propinfo in runtimeType.GetProperties():
        print propinfo.Name

(prints "Date", "Day", etc.)

Is there something in IronPython that could play the role of typeof in
the above (that is, that would give me the RuntimeType corresponding to
the python representation of a CLR type)?  If not, I think it would be
useful to add this capability in some form.

---
Greg Chapman

_______________________________________________
users-ironpython.com mailing list
users-ironpython.com@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to