工厂模式定义:实例化对象,用工厂方法代替new操作。接口(IBase):publicinterfaceIBase{voidExcute();}实现类A(BaseAImpl):publicclassBaseAImpl:IBase{publicvoidExcute(){Typetype=this.GetType();Console.WriteLine("类全A名称:{0},类名:{1},是否实现接口IBase:{2}",type.FullName,type.Name,typeof(IBase)...
查看全文