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...
c# 3.0 : Partial Method You are all aware of “Partial Class” introduced in .net 2.0. Partial class is useful in situation where you need to split the definition of a class, struct or an interface over two or more source files. Each source file contains a section of the type or method definition and all parts are combined when the application is compiled. There are several situations when splitting a class definition is desirable: When working on large projects, spreading a class over separate files...