Dopátral som sa ku InvokeMember ibaže dostávam Constructor on type 'namespaceIsvm.ISVMclass' not found. Toto je môj kód
For Each t As Type In pluginAssembly.GetTypes()
If Not InStr(t.FullName, "ISVMclass") = 0 Then
Dim plugin As Object = pluginAssembly.CreateInstance(t.FullName)
Dim mw As MWArray
Dim o As MWArray
mw = 1
o = plugin.GetType.InvokeMember("pluginObjectOfISVM", BindingFlags.CreateInstance Or BindingFlags.Default, Nothing, plugin, New Object() {mw}).ToString
'o = plugin.pluginObjectOfISVM(mw)
plugins.Add(plugin)
End If
Next
Nevidí niekto, čo robím zle?
|