摘要: namespace MultipleMementoPattern { // 联系人 public class ContactPerson { public string Name { get; set; } public string MobileNum { get; set; } } // 发起人 public ... 阅读全文
posted @ 2017-05-31 16:13 小小高 阅读(216) 评论(0) 推荐(0)
摘要: namespace VistorPattern { // 抽象元素角色 public abstract class Element { public abstract void Accept(IVistor vistor); public abstract void Print(); } // 具体元素A publ... 阅读全文
posted @ 2017-05-31 16:11 小小高 阅读(163) 评论(0) 推荐(0)
摘要: namespace ChainofResponsibility { // 采购请求 public class PurchaseRequest { // 金额 public double Amount { get; set; } // 产品名字 public string ProductName { get;... 阅读全文
posted @ 2017-05-31 16:10 小小高 阅读(179) 评论(0) 推荐(0)