Reader Level:
ARTICLE

Configuring and Invoking Dynamic Delegate using Reflection

Posted by Kiran Khambete Articles | Visual C# July 26, 2005
The attached source code projects shows how to configure and invoke dynamic delegates using Reflection.
  • 0
  • 0
  • 16835
Download Files:
 

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.

COMMENT USING

Trending up