<div><span class="gmail_quote">On 7/27/07, <b class="gmail_sendername">Matt Williams</b> &lt;<a href="mailto:matt@geneity.co.uk">matt@geneity.co.uk</a>&gt; 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>&nbsp;</div>
<div>Unfortunately, this won&#39;t work because Python classes aren&#39;t CLR classes -- they can&#39;t be, because Python classes are mutable in ways that CLR classes aren&#39;t.&nbsp; To load a Python-implemented class via reflection, you&#39;d have to front-end it with a CLR class implemented in C#/VB/etc.
</div>
<div>&nbsp;</div>
<div>--</div>
<div>Curt Hagenlocher</div>
<div><a href="mailto:curt@hagenlocher.org">curt@hagenlocher.org</a></div></div>