摘要:Composite Definition Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and c...
阅读全文
摘要:Adapter Definition Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwis...
阅读全文
摘要:原型模式:Prototype Definition Specify the kind of objects to create using a prototypical instance, and create new objects by copying this prototype. ...
阅读全文
摘要:Factory Method Definition Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a c...
阅读全文
摘要:创建型的设计模式:(builder 生成器模式) Definition (定义) Separate the construction of a complex object from its representation so that the same construction process can create different representations. (将一个复合对象...
阅读全文
摘要:创建型的设计模式中的(Abstract Pattern)抽象工厂模式 定义(difinition): Provide an interface for creating families of related or dependent objects without specifying their concrete classes . 提供一个接口可以创建一系列没有实现类的,相关联...
阅读全文
摘要:我以前在 cn.thespoke.net的文章,转贴 最近看了一些C#来描述设计模式的资料。也听了Microsoft做的讲座。想总结一下。在http://www.dofactory.com里面看到了用C#描述的设计模式,觉得以前自己做的软件不好。因为经常修改软件使我很痛苦,所以决定痛改前非。 这里说说自己经常会用到的模式 1. 单件模式 http://msdn.microsoft...
阅读全文
摘要:以前总是觉得IIS保护文件能力不够,ASP.NET的出现也只能保护一定大小的文件 文件大了,下载的问题根本就解决不了. 也是无心中想用Google看看有没有人解决了这个问题. http://it.anhuinews.com/system/2004/12/27/001086733.shtml http://www.knowsky.com/5509.html ...
阅读全文