System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(@"CustomControls.Nav.dll");
//Namespace and assembly name are CustomControls.Nav , the class name for the control is WebBar
Type type = assembly.GetType("CustomControls.Nav.WebBar");
我的类型为null。我在这里做错了什么?
答案 0 :(得分:0)
查看此程序集时,对象浏览器会显示什么?它是否显示CustomControls.Nav.WebBar?