asp.net

asp.net,c#

2007年3月8日

结构型模式 适配器模式

摘要: Adapter Definition Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because ... 阅读全文

posted @ 2007-03-08 20:39 灵魂边缘 阅读(230) 评论(0) 推荐(0) 编辑
结构型模式 代理模式

摘要: Definition Provide a surrogate or placeholder for another object to control access to it. UML class diagram Participants ... 阅读全文

posted @ 2007-03-08 20:37 灵魂边缘 阅读(245) 评论(0) 推荐(0) 编辑
结构型模式 享元模式

摘要: Definition Use sharing to support large numbers of fine-grained objects efficiently. UML class diagram Participants ... 阅读全文

posted @ 2007-03-08 20:31 灵魂边缘 阅读(214) 评论(0) 推荐(0) 编辑
结构型模式 外观模式

摘要: Definition Provide a unified interface to a set of interfaces in a subsystem. Façade defines a higher-level interface that makes the subsystem easier to use. ... 阅读全文

posted @ 2007-03-08 20:23 灵魂边缘 阅读(239) 评论(0) 推荐(0) 编辑
行为型模式一 命令模式

摘要: Definition Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable o... 阅读全文

posted @ 2007-03-08 20:21 灵魂边缘 阅读(219) 评论(0) 推荐(0) 编辑
行为型模式 Observer观察者模式

摘要: Definition Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. ... 阅读全文

posted @ 2007-03-08 15:44 灵魂边缘 阅读(255) 评论(0) 推荐(0) 编辑
行为型 Iterator模式(迭代)

摘要: Definition Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. UML class ... 阅读全文

posted @ 2007-03-08 15:40 灵魂边缘 阅读(349) 评论(0) 推荐(0) 编辑