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;
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;
用Assembly要using System.Reflection;
这是从该目录文件下载入一个DLL