摘要: 这两天在写一个采用XML存储数据的网站。我定义了两个类: ProductCategory与ProductCategoryCollection,用于在运行时存储产品分类数据,ProductCategoryCollection从CollectionBase继承,用于存储与访问ProductCategory实例的集合。产品分类数据存储在一个xml文件中, 我想通过Deserialize生成Pro... 阅读全文
posted @ 2004-03-24 17:10 dudu 阅读(3114) 评论(4) 推荐(0) 编辑
摘要: 今天在写程序时, 在一个方法前加了static, 而这个方法实现了interface中的一个成员。编译时,总是出现“不会实现接口成员”的错误,百思不得其解,后来将static去掉,编译就成功。 在www.asprelated.com上看到这么一段话:"It is a compile-time error for an explicit interface member implementatio... 阅读全文
posted @ 2004-03-24 10:15 dudu 阅读(9205) 评论(4) 推荐(1) 编辑
摘要: ... that access modifiers like public, private and internal are enforced by the language compilers (C#, VB.NET) only and not on IL level? That means that you can invoke any private or internal member ... 阅读全文
posted @ 2004-03-24 08:49 dudu 阅读(3133) 评论(3) 推荐(0) 编辑