[IronPython] importing C# functions

Slide slide.o.mix at gmail.com
Fri Aug 4 17:32:26 CEST 2006

I am currently adding a scripting console to one of the applications I
develop. I would like to, at runtime, add functions that can be called
by the python code in the console. Something like

// c#
public int AddIt(int a, int b)
    return a + b;

then, I would like to add that function (and possibly functions from
plugins) so they can be called from python. Do I need to create a
module and add the functions to the module? Is there a better way?



More information about the Ironpython-users mailing list