i trying 'export' c# function use ironpython , python .net. have following:
[dllimport("user32.dll")] public static extern bool movewindow(intptr hwnd, int x, int y, int nwidth, int nheight, bool brepaint); public func<> main() { return movewindow; }
i trying pass c# function python (not problem, handled ironpython). question how know put in parameters of func<>
? tried , got func<t1,t2,t3,t4,t5,t6,t7,t8,t9,tresult>
structure , number of arguments. means type definitions given here don't work, or missing few.
what types supposed put in?? or how find out?
the signature
bool movewindow(intptr hwnd, int x, int y, int nwidth, int nheight, bool brepaint);
so it's func<intptr, int, int, int, int, bool, bool>
.
the last type parameter of func
return type, can see in the docs.