[IronPython] typeof equivalent?

Keith J. Farmer kfarmer at thuban.org
Mon Aug 8 11:10:05 CEST 2005


I take it that:
    from System import Type
    from System import DateTime
    Type.GetType(DateTime).GetProperties()
Isn't what you're looking for?  It is, admittedly, not what *I* would
expect for the DateTime type.
Perhaps DateTime.__dict__ ?
-----
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
Greg Chapman

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.




More information about the Ironpython-users mailing list