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

Jimmy Schementi jschementi at gmail.com
Tue Jan 10 01:37:21 CET 2012


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, they cannot be invoked like instance methods. Instead, they have to be invoked like static methods.

If anyone wants to correct this, feel free to update the documentation and send a pull request: https://github.com/IronLanguages/main/blob/master/Languages/IronPython/Public/Doc/dotnet-integration.rst

~Jimmy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20120109/2f9fc4e5/attachment.html>


More information about the Ironpython-users mailing list