C#工厂模式,反射时的语法,加载类

            string className = string.Format( "CVTT.BLL.{0}.ViewInfo,CVTT.BLL.{0}" , subClassName );
            var temp = Activator.CreateInstance( Type.GetType(className , true ) );
            var temp = System.Reflection.Assembly.Load("CVTT.BLL." + subClassName).CreateInstance("CVTT.BLL." + subClassName + ".ViewInfo");

你可能感兴趣的:(工厂模式)