views:

138

answers:

3

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"
+4  A: 

Via Reflection (specifically Type.GetMethod).

ctacke
A: 

Use the classes in the System.Reflection namespace.

U62
A: 

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.

Joel Coehoorn