会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zkzk945
专注技术,实现产品
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
2
3
4
5
6
下一页
2016年1月11日
迭代器模式 c#
摘要: 抽离集合对象的遍历职责。using System;using System.Collections;using System.Collections.Generic;using System.Linq;namespace ConsoleApplication1{ class Program...
阅读全文
posted @ 2016-01-11 18:05 zkzk945
阅读(177)
评论(0)
推荐(0)
编辑
访问者模式 c#
摘要: using System;using System.Collections;using System.Collections.Generic;using System.Linq;namespace ConsoleApplication1{ class Program { p...
阅读全文
posted @ 2016-01-11 17:40 zkzk945
阅读(173)
评论(0)
推荐(0)
编辑
备忘录模式 c#
摘要: 备忘就是为了恢复数据嘛, 电脑系统知道什么需要保存什么不需要保存,文件夹只提供保存的位置,不关心具体的保存行为。using System;using System.Collections;using System.Collections.Generic;using System.Linq;nam...
阅读全文
posted @ 2016-01-11 16:09 zkzk945
阅读(110)
评论(0)
推荐(0)
编辑
中介者模式 C#
摘要: 相亲的时候如果有个媒婆,那么就会避免很多不必要的麻烦了撒。using System;using System.Collections;using System.Collections.Generic;using System.Linq;namespace ConsoleApplication1{...
阅读全文
posted @ 2016-01-11 15:01 zkzk945
阅读(127)
评论(0)
推荐(0)
编辑
状态者模式 c#
摘要: 某一对象由于有不同的状态,而产生不同的行为。using System;using System.Collections;using System.Collections.Generic;using System.Linq;namespace ConsoleApplication1{ cla...
阅读全文
posted @ 2016-01-11 14:18 zkzk945
阅读(140)
评论(0)
推荐(0)
编辑
2016年1月9日
解释器模式 c#
摘要: 解释器模是一种按照规定语法进行解析的方案。using System;using System.Collections;using System.Collections.Generic;using System.Linq;namespace ConsoleApplication1{ clas...
阅读全文
posted @ 2016-01-09 17:56 zkzk945
阅读(203)
评论(0)
推荐(0)
编辑
2016年1月8日
享元模式 c#
摘要: 我们写文档的时候不可能对每一个字符都进行内存分配,只需要对基本字符分配内存然后进行复用就可以了。using System;using System.Collections;using System.Collections.Generic;using System.Linq;namespace C...
阅读全文
posted @ 2016-01-08 20:57 zkzk945
阅读(130)
评论(0)
推荐(0)
编辑
桥接模式 c#
摘要: 当一个类有两个维度的变化时,我们就可以用组合替代继承,那么就可以避免继承带来的重复代码书写。using System;using System.Collections;using System.Collections.Generic;using System.Linq;namespace Con...
阅读全文
posted @ 2016-01-08 19:20 zkzk945
阅读(145)
评论(0)
推荐(0)
编辑
组合模式 c#
摘要: 当我们处理简单对象和复杂对象时,如果他们有共性,那么我们可以使用统一接口,让用户更好的操作不同的对象。using System;using System.Collections;using System.Collections.Generic;using System.Linq;namespac...
阅读全文
posted @ 2016-01-08 17:50 zkzk945
阅读(114)
评论(0)
推荐(0)
编辑
原型模式 c#
摘要: 通过复制原型来创造新的对象。using System;using System.Collections;using System.Collections.Generic;using System.Linq;namespace ConsoleApplication1{ class Program...
阅读全文
posted @ 2016-01-08 16:55 zkzk945
阅读(110)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
下一页