Dynamic addressOf

What is the best way to reference a dynamic delegate. I would like to do the following with the method names returned from the config database.

AddressOf "MethodName"

      

0


source to share


3 answers


Through reflection (specifically Type.GetMethod ).



+4


source


Use classes in the System.Reflection namespace.



0


source


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

0


source







All Articles