[Ironpython-users] How to use extension type with C# Extension Methods?
刘振海
1989lzhh at gmail.com
Tue Jan 10 13:38:31 CET 2012
Hi,
I just try the clr.ImportExtensions(#namespace),It worked
Now I can use the DynamicDataDisplay to plot graph in IronPython as
convenient as C#.
Thanks IronPython Team for providing such amazing product.
Regards,
Liu Zhenhai
2012/1/10 Jeff Hardy <jdhardy at gmail.com>
> The way to do it in 2.7 is to use e.g. clr.ImportExtensions(System.Linq).
>
> I'm not sure this is documented anywhere.
>
> - Jeff
>
> On Mon, Jan 9, 2012 at 12:58 AM, 刘振海 <1989lzhh at gmail.com> wrote:
> > Hello everyone,
> >
> > I follow
> > the
> http://blogs.msdn.com/b/saveenr/archive/2008/11/14/consuming-extension-methods-in-ironpython.aspx
> > but I did not find the ExtensionType in Microsoft.Scripting.dll in
> > ironpython fold.
> > It seems the ExtensionType is missing in the ironpython2.7.1, right?
> > I have to use the Extension method like
> > "extension_method(obj,args)",although I am OK with the style of writing.
> >
> > Regards,
> > Liu Zhenhai
> >
> >
> > _______________________________________________
> > Ironpython-users mailing list
> > Ironpython-users at python.org
> > http://mail.python.org/mailman/listinfo/ironpython-users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120110/40f2e034/attachment.html>
More information about the Ironpython-users
mailing list