0

What is the best way of referencing a dynamic delegate. I'd like to do the following with method names returned from a configuration database.

AddressOf "MethodName"

3 Answers 3

4

Via Reflection (specifically Type.GetMethod).

0

Use the classes in the System.Reflection namespace.

0

AddressOf doesn't work that way, but you can use reflection to get a delegate for a method if you also know the assembly/class for the method.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.