[Ironpython-users] How to use extension type with C# Extension Methods?

2012-01-09 Thread 刘振海
Hello everyone, I follow the http://blogs.msdn.com/b/saveen r/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

[Ironpython-users] IronPython, Daily Digest 1/8/2012

2012-01-09 Thread no_reply
Hi ironpython, Here's your Daily Digest of new issues for project "IronPython". In today's digest:ISSUES 1. [New issue] xml.dom.minidom.parse not working in ironpython 2.7 2. [New comment] zlib fails to compress an empty string 3. [New comment] zlib fails to compress an empty string ---

Re: [Ironpython-users] How to use extension type with C# Extension Methods?

2012-01-09 Thread Jeff Hardy
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, 刘振海 <[email protected]> wrote: > Hello everyone, > > I follow > the http://blogs.msdn.com/b/saveenr/archive/2008/11/14/consuming-extension-

Re: [Ironpython-users] How to use extension type with C# Extension Methods?

2012-01-09 Thread Dino Viehland
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.

Re: [Ironpython-users] How to use extension type with C# Extension Methods?

2012-01-09 Thread Jimmy Schementi
On Jan 9, 2012, at 6:25 PM, Jeff Hardy wrote: > I'm not sure this is documented anywhere. It is documented, but the documentation is wrong =) From http://ironpython.net/documentation/dotnet/dotnet.html#extension-methods: Extension methods are currently not natively supported by IronPython. Hence