Scroll To Top
Reader Level:

Configuring and Invoking Dynamic Delegate using Reflection

By Kiran Khambete on Jul 26, 2005
The attached source code projects shows how to configure and invoke dynamic delegates 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.