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.
Reader Level:
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.

Login to add your contents and source code to this article
post comment
     
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Join a Chapter