case-block was followed by a ;
that's what you get for 13hrs straight
------------------------
I have a problem using InvokeMember. I have a client application that
loads a set of assemblies runtime. It creates instances of them and
calls a method which I specify in a XML file.
What I'm calling:
t.InvokeMember(widget.InitMethod, BindingFlags.DeclaredOnly
|BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance |
BindingFlags.InvokeMethod, null, newWidget, widget.Parameters);
What I have:
newWidget is a object of the class WSlider. WSlider has a method called
InitSlider(int,int,int).
widget.Parameters is a object array which holds 3 int values.
widget.InitMethod holds "InitSlider".
Now, this just throws me a MissingMethodException. It works fine with
one parameter, but as soon as I add more it throws the exception. Anyone
got a clue on this?