[IronPython] Expose C# in Embedded Ironpython

chella at terra.com.br chella at terra.com.br
Sat May 30 13:49:53 CEST 2009


 Hi    i´m developing a  application with Winforms with a scriptable
Ironpython and i want expose to use in script with Ironpython my C#
Classes. For example: I have a c# class coded in my form namespace 
public int Add(int arg1, int arg2)         {             return arg1
+ arg2;         } In IronPython i need do this: add_result = Add(2,5)
I see that i can generate a DLL and import, but i think that this is
no the only way.  How to code this? Thank you Mark  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090530/1662f60c/attachment.html>


More information about the Ironpython-users mailing list