摘要: 我对接口和继承的概念很迷糊,例如上文中: return (PetShop.IDAL.ICategory)Assembly.Load(path).CreateInstance(className); 这段代码中,path的路径是指向SQLServerDAL项目的Category类(我知道此类实现了PetShop.IDAL.ICategory接口), 那么,Assembly.Load(path).CreateInstance(className)应该是创建了一个实例,怎么能够在此实例前用(PetShop.IDAL.ICategory)强制定义为接口.哪位兄弟明白的指点指点. 阅读全文
posted @ 2008-08-06 15:27 阿东hd 阅读(627) 评论(1) 推荐(0) 编辑