<div><span class="gmail_quote">On 7/27/07, <b class="gmail_sendername">Matt Williams</b> <<a href="mailto:matt@geneity.co.uk">matt@geneity.co.uk</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>This code is attempting to instantiate my IronPython classes dynamically<br>from Microsoft.ApplicationBlocks.UIProcess.GenericFactory
.<br><br>It would appear that the factory is making calls to load the IronPython<br>assembly, then using reflection to load/instantiate and return the<br>specified class.</blockquote>
<div> </div>
<div>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.
</div>
<div> </div>
<div>--</div>
<div>Curt Hagenlocher</div>
<div><a href="mailto:curt@hagenlocher.org">curt@hagenlocher.org</a></div></div>