[IronPython] Crash with Action and reflection question
Michael Foord
fuzzyman at voidspace.org.uk
Thu Apr 30 15:09:07 CEST 2009
Hello all,
The following seems to crash the IronPython 2.0.1 interpreter:
>>> from System import Action
>>> Action(lambda: foo)
Obviously it's invalid - but it kills the interpreter rather than
raising an exception.
I'm doing some introspection and I'd like to work out the return types
of methods of .NET objects. One route would be to parse the docstring. :-)
Another way would be to get the MethodInfo. For an arbitrary .NET type
from inside IronPython how do I get a System.Type instance representing
the type? (I'd quite like an answer to that question - but if you also
have a suggestion as to a better way that would be great as well...)
Thanks
Michael
--
http://www.ironpythoninaction.com/
More information about the Ironpython-users
mailing list