2018年2月25日

C#设计模式--迭代器模式(学习Learning hard设计模式笔记)

摘要: /// <summary> /// 抽象聚合接口 /// </summary> public interface IListCollection { Iterator GetIterator(); } //迭代器抽象类 public interface Iterator { bool MoveNex 阅读全文

posted @ 2018-02-25 22:06 雪域凌晨 阅读(176) 评论(0) 推荐(0) 编辑

C#设计模式--命令模式(学习Learning hard C#设计模式笔记)

摘要: 原文地址http://www.cnblogs.com/zhili/p/CommandPattern.html 如果需要扩展,在命令类、抽象类、实现类、学生类中进行声明即可,客户端不用修改, 阅读全文

posted @ 2018-02-25 19:34 雪域凌晨 阅读(127) 评论(0) 推荐(0) 编辑

导航