On 7/27/07, Matt Williams <[EMAIL PROTECTED]> wrote:
>
>
> This code is attempting to instantiate my IronPython classes dynamically
> from Microsoft.ApplicationBlocks.UIProcess.GenericFactory.
>
> It would appear that the factory is making calls to load the IronPython
> assembly, then using reflection to load/instantiate and return the
> specified class.


Unfortunately, this won't work because Python classes aren't CLR classes --
they can't be, because Python classes are mutable in ways that CLR classes
aren't.  To load a Python-implemented class via reflection, you'd have to
front-end it with a CLR class implemented in C#/VB/etc.

--
Curt Hagenlocher
[EMAIL PROTECTED]
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to