[Ironpython-users] How to use extension type with C# Extension Methods?
dinov at microsoft.com
Tue Jan 10 01:19:11 CET 2012
Also ExtensionType is actually called ExtensionTypeAttribute (C# lets you drop the Attribute suffix when using an attribute). But the type moved from Microsoft.Scripting.dll into Microsoft.Dynamic.dll when we were isolating the hosting APIs. So if you'd prefer to use the old way you still can.
From: ironpython-users-bounces+dinov=microsoft.com at python.org [mailto:ironpython-users-bounces+dinov=microsoft.com at python.org] On Behalf Of Jeff Hardy
Sent: Monday, January 09, 2012 3:25 PM
Cc: ironpython-users at python.org
Subject: Re: [Ironpython-users] How to use extension type with C# Extension Methods?
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.
On Mon, Jan 9, 2012 at 12:58 AM, 刘振海 <1989lzhh at gmail.com> wrote:
> Hello everyone,
> I follow
> -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.
> Liu Zhenhai
> Ironpython-users mailing list
> Ironpython-users at python.org
Ironpython-users mailing list
Ironpython-users at python.org
More information about the Ironpython-users