string strDllPath = Application.StartupPath;
string className = formname;//你的ClassName
Assembly b = Assembly.LoadFrom(strDllPath+@"\UP2.Buniness.BusinessRules.dll");
Type tt = b.GetType(className); 
IBaseRule  iObj = b.CreateInstance(className) as IBaseRule;

解决方案 »

  1.   

    谢谢peterli1976(汗颜);不过再次麻烦一下,请问UP2.Buniness.BusinessRules.dll是什么东东??.....
      

  2.   

    还有,用Assembly 是不是要引用一下什么?
      

  3.   

    那个dll就是他编译的自己的namespace,包括类的定义等。
    用Assembly要using System.Reflection;
      

  4.   

    Assembly b = Assembly.LoadFrom(strDllPath+@"\UP2.Buniness.BusinessRules.dll");
    这是从该目录文件下载入一个DLL