Geeks With Blogs
Rajesh Pillai My experiments with mvc, jquery, wpf, silverlight, sharepoint, tdd and design patterns.

Reflection has always fascinated me.  Here a small reusable API to invoke methods dynamically.  This uses local caching for optimization and takes care of multithreading as well..

You can use this class in a dll or a webservice.....    Pass this method the following parameters..

1. dllPath : The path to the dll.

2. className : The type to load dynamically

3. methodName : The method to invoke

4 pInput[] : The input parameters if any.

private static Hashtable AssemblyHash = new Hashtable(1024);
private static Hashtable TypeHash = new Hashtable(10*1024);


Enjoy Programming...

Posted on Friday, February 12, 2010 5:43 PM c# , Reflection | Back to top

Comments on this post: Reflection

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Rajesh Pillai | Powered by: