我刚接触vb.net编程,想要从vb.net调用python函数,但出现了错误,提示'Microsoft.Scripting.Hosting.ObjectOperations'没有成员'Invoke'
Imports Microsoft.Scripting
Imports Microsoft.Scripting.Hosting
Imports IronPython.Hosting
Sub Main
Dim engine As ScriptEngine
Dim scope As ScriptScope
Dim i As Integer
engine = Python.CreateEngine()
scope = engine.ExecuteFile("C:\Working.py")
Dim v = engine.Operations.Invoke(scope.GetVariable(methodName))
请问有没有更好的方法来调用并获取返回值的方法名?我已经看过这个链接:http://msmvps.com/blogs/theproblemsolver/archive/2008/08/14/calling-ironpython-functions-from-net.aspx
提前感谢您的帮助。