Fork me on GitHub

代理模式

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Proxy { /// <summary> /// 被追求者类 /// </summary> class S 阅读全文
posted @ 2013-03-20 09:47 品茗见南山 阅读(204) 评论(0) 推荐(0)

装饰模式

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 装饰模式v2._1 { class Person { public Person() { } public 阅读全文
posted @ 2013-03-20 09:27 品茗见南山 阅读(860) 评论(2) 推荐(2)

策略模式与工厂结合(实现商场收银效果)

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 商场收银 { abstract class CashSuper { /// <summary> /// 现金 阅读全文
posted @ 2013-03-15 16:12 品茗见南山 阅读(324) 评论(0) 推荐(0)

策略模式原型

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace StrategyMordern { /// <summary> /// 抽象算法类 /// </summar 阅读全文
posted @ 2013-03-15 16:11 品茗见南山 阅读(170) 评论(0) 推荐(0)