星辉

星月同辉 e路随行
.net/vs2005/c#/web/ajax
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2007年12月23日

摘要: 代理(Proxy)模式 大数据调用 大计算 远程计算机访问 限制访问权限 应用实例1 using System; using System.Drawing; namespace Proxy { /// /// Summary description for Imager. /// public interface I... 阅读全文

posted @ 2007-12-23 21:24 star163 阅读(407) 评论(0) 推荐(0) 编辑

摘要: 迭代器模式(Iterator) 封装多个元素 使用户正确使用 遍历内部内容 总结Iterator 使用标准接口遍历列表/集合 封装操作 提供后期操功能作扩展 应用实例 using System; using System.Data; using System.Data.SqlClient; using System.Collect... 阅读全文

posted @ 2007-12-23 19:48 star163 阅读(381) 评论(0) 推荐(0) 编辑

摘要: kllk 阅读全文

posted @ 2007-12-23 14:19 star163 阅读(327) 评论(1) 推荐(0) 编辑

摘要: 单件模式 整个系统中对象是唯一的 也可以有固定数目个 如:对象池、portal中的配置对象 当前httpcontext appdomain 应用实列(一) using System; namespace CSDesingPattern { class Singleton { private static Singleton mIns... 阅读全文

posted @ 2007-12-23 12:48 star163 阅读(364) 评论(0) 推荐(0) 编辑

摘要: 存在一个创建对象的工厂 调用者从中取得特别的对象 由工厂决定如何符合调用需求 客户不知道对象如何生成 阅读全文

posted @ 2007-12-23 11:33 star163 阅读(732) 评论(0) 推荐(0) 编辑

摘要: 保证隔离 划清界限,不要拖泥带水 实现隔离 设计原则:针对接口,而非实现 Programming to an Interface, not an Implementation 抽象,接口 不提供实现,是为了更大程度的实现 优先使用对象的组合而非继承 阅读全文

posted @ 2007-12-23 11:11 star163 阅读(1475) 评论(0) 推荐(0) 编辑