[IronPython] Creating Dynamic Assemblies from IronPython 2.6

Jeff Hardy jdhardy at gmail.com
Sat Mar 21 17:44:22 CET 2009


Thanks Curt, that worked. Now I have a new problem - I can get a
MethodInfo, but I need to be able to convert it to something I can
call. Seo's old code used BuiltinFunction.MakeOrAdd, but that is now
internal. Can this be made public, or is there a better way to handle
it?

- Jeff

2009/3/20 Curt Hagenlocher <curt at hagenlocher.org>:
> I think this is something that broke well before the 2.0 release.  To work
> around it in pyc.py, we added DefineDynamicAssembly to the PythonOps class
> in IronPython:
>
> import clr
> clr.AddReference('IronPython')
> from IronPython.Runtime.Operations import PythonOps
> assemblyBuilder = PythonOps.DefineDynamicAssembly(...)
>



More information about the Ironpython-users mailing list