Re: using reflection to invoke static methods of the class
On Oct 16, 10:33 pm, puzzlecracker <ironsel2...@gm ail.comwrote:
Say, I have classname string, static method string, parameters list
(which is char[]). Can I use reflection to invoke the method?
Yes.
Using Type.GetType("Y OUR-TYPE").InvokeMe mber
The second parameter is BindingFlag, specify BindingFlags.St atic for
invocation of static methods.
Re: using reflection to invoke static methods of the class
puzzlecracker wrote:
Say, I have classname string, static method string, parameters list
(which is char[]). Can I use reflection to invoke the method?
Are you referring to a constructor (method name == class name)? Yes you can
use reflection, no most of the code suggested to you isn't going to work
exactly the same for constructor calls.
Comment