In case it&#39;s interesting or useful, I&#39;ve attached some p/Invoke stuff I was playing with before I got derailed by the DefineDynamicAssembly problem and then joined Microsoft :).<br><br>
<div class="gmail_quote">On Sat, Mar 21, 2009 at 10:45 AM, Dino Viehland <span dir="ltr">&lt;<a href="mailto:dinov@microsoft.com">dinov@microsoft.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">If you only have 1 method and don&#39;t need overload resolution I&#39;d suggest making a delegate using System.Delegate.CreateDelegate.   Otherwise this could be made public.<br>

<div>
<div></div>
<div class="h5"><br>&gt; -----Original Message-----<br>&gt; From: <a href="mailto:users-bounces@lists.ironpython.com">users-bounces@lists.ironpython.com</a> [mailto:<a href="mailto:users-">users-</a><br>&gt; <a href="mailto:bounces@lists.ironpython.com">bounces@lists.ironpython.com</a>] On Behalf Of Jeff Hardy<br>
&gt; Sent: Saturday, March 21, 2009 9:44 AM<br>&gt; To: Discussion of IronPython<br>&gt; Subject: Re: [IronPython] Creating Dynamic Assemblies from IronPython<br>&gt; 2.6<br>&gt;<br>&gt; Thanks Curt, that worked. Now I have a new problem - I can get a<br>
&gt; MethodInfo, but I need to be able to convert it to something I can<br>&gt; call. Seo&#39;s old code used BuiltinFunction.MakeOrAdd, but that is now<br>&gt; internal. Can this be made public, or is there a better way to handle<br>
&gt; it?<br>&gt;<br>&gt; - Jeff<br>&gt;<br>&gt; 2009/3/20 Curt Hagenlocher &lt;<a href="mailto:curt@hagenlocher.org">curt@hagenlocher.org</a>&gt;:<br>&gt; &gt; I think this is something that broke well before the 2.0 release.  To<br>
&gt; work<br>&gt; &gt; around it in pyc.py, we added DefineDynamicAssembly to the PythonOps<br>&gt; class<br>&gt; &gt; in IronPython:<br>&gt; &gt;<br>&gt; &gt; import clr<br>&gt; &gt; clr.AddReference(&#39;IronPython&#39;)<br>
&gt; &gt; from IronPython.Runtime.Operations import PythonOps<br>&gt; &gt; assemblyBuilder = PythonOps.DefineDynamicAssembly(...)<br>&gt; &gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br>&gt; <a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.ironpython.com">Users@lists.ironpython.com</a><br><a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
</div></div></blockquote></div><br>