[IronPython] Expose C# Class to Script Ironpython

Dody Gunawinata empirebuilder at gmail.com
Sat May 30 13:58:01 CEST 2009


Check out http://www.ironpython.info/index.php/Main_Page. It will have the
information you are looking for.

On Sat, May 30, 2009 at 2:54 PM, <chella at terra.com.br> wrote:

>  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
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>


-- 
nomadlife.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090530/a53ab059/attachment.html>


More information about the Ironpython-users mailing list