G
Guest
Is there a way to execute a method if all we know is its name as a string?
Let's say we have the following class. What is the code for the Execute
method? I need a solution that works with the Compact Framework.
public class Executor {
public static Execute(string p_whichFunction) {
// call the function named p_whichFunction
}
private static _function1() {
// processing code
}
private static _function2() {
// processing code
}
private static _function3() {
// processing code
}
}
Thanks in advance for all suggestions.
Joel Finkel
(e-mail address removed)
Let's say we have the following class. What is the code for the Execute
method? I need a solution that works with the Compact Framework.
public class Executor {
public static Execute(string p_whichFunction) {
// call the function named p_whichFunction
}
private static _function1() {
// processing code
}
private static _function2() {
// processing code
}
private static _function3() {
// processing code
}
}
Thanks in advance for all suggestions.
Joel Finkel
(e-mail address removed)