0
如何從的一個ProvidedMethod
從ProvidedMethod訪問實例
實施也就是說如果foo
是提供的類型和刪除類型爲Bar
一個叫Execute
方法訪問時(runtime)實例然後給這個代碼
foo.Execute()
祝ProvidedMethod
等於這個
bar.Execute() //where bar is an object of type Bar
我有什麼是這個
//p is a MethodInfo that represents Bar.Execute and m is the ProvidedMethod
objm.InvokeCode <- fun args -> <@@ p.Invoke(--what goes here--,null) @@>