タイトルが私の目標を強調しているかわからない.
コンパイル時にメソッドを動的に呼び出すことはできますか? 例えば:
int CallMethod(string methodName, string methodArg)
{
Foo foo;
return foo.#methodName(methodArg);
}
CallMethod("getValue", "test"); // This would attempt to call on a Foo instance, method getValue with argument "test" -- foo.getValue("test");
ありがとう!