asp.net

asp.net,c#

随笔分类 -  Design Pattern

结构型模式 组合模式
摘要:Composite Definition Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and composition... 阅读全文

posted @ 2007-03-09 16:23 灵魂边缘 阅读(322) 评论(0) 推荐(0)

结构型模式,装饰模式
摘要:Definition Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. ... 阅读全文

posted @ 2007-03-09 16:17 灵魂边缘 阅读(271) 评论(0) 推荐(0)

结构型模式 适配器模式
摘要: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 灵魂边缘 阅读(240) 评论(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 灵魂边缘 阅读(262) 评论(0) 推荐(0)

结构型模式 享元模式
摘要:Definition Use sharing to support large numbers of fine-grained objects efficiently. UML class diagram Participants ... 阅读全文

posted @ 2007-03-08 20:31 灵魂边缘 阅读(223) 评论(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 灵魂边缘 阅读(247) 评论(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 灵魂边缘 阅读(226) 评论(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 灵魂边缘 阅读(265) 评论(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 灵魂边缘 阅读(360) 评论(0) 推荐(0)