You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to bind python function with C#'s delegate method in winform
C# Code
public delegate string CallBackFunc(string content);
using (Py.GIL())
{
using (PyScope scope = Py.CreateScope())
{
scope.Set("main", this);
scope.Exec(pycode);
}
}
Python Code
def test(input):
return "OK"
res = main.CallBackFunc(test)
When I test in program ,GET the Error Infomation:Type was not found "System. Reflection. Emit. TypeBuilder" on the constructor,
What should I do For this?
The text was updated successfully, but these errors were encountered:
@filmor
1.Thank you for attention, Because of the lack of relevant information about delegate, I have been beseted with this problem for several days, I just found some solutions ,such as #1471,but it's no helpful for this.
2.I just test the newest release (Ver. 2.5.2), I am not sure whether this also happen with other version.
Environment
Details
When I test in program ,GET the Error Infomation:Type was not found "System. Reflection. Emit. TypeBuilder" on the constructor,
What should I do For this?
The text was updated successfully, but these errors were encountered: