[IronPython] Expose C# Class to Script Ironpython
chella at terra.com.br
chella at terra.com.br
Sat May 30 13:54:18 CEST 2009
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }
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/efd614ed/attachment.html>
More information about the Ironpython-users
mailing list