Configuring and Invoking Dynamic Delegate using Reflection


The code shared here would be configuring and invoking methods using Reflection.
 
The disadvantage with "Delegates", is we can not attach method name to a delegate via variables. (The method names are hard coded in the code). 

In the code sample with the attached demo, there is clear isolation between the Reflection code and the, business logic. The demo class explains how to use the "Delegate1" class library.


Similar Articles