Assembly testDLL = Assembly.LoadFile(Directory.GetCurrentDirectory() + @"\testDll.dll");
Type type = testDLL.GetType("testDll.TestClass");object instanceOfMyType = Activator.CreateInstance(type);
MethodInfo mi = type.GetMethod("fun1");
mi.Invoke(instanceOfMyType, null);