C-sharpAsk
This site contains all the question regarding c#sharp and dot-net
Sunday, January 9, 2011
call function using string Name
MethodInfo
mi =
typeof
(class1).GetMethod(
"functionnameHere"
);
mi.
Invoke
(
null
,
null
);
//if function takes argument then
mi.
Invoke
(
null
,
new
object
[] {
"args1"
,
"args2"
});
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment