2018年2月23日

C#设计模式--模板方法模式(学习Learning hard 设计模式笔记)

摘要: class Program { static void Main(string[] args) { //创建一个菠菜实例并调用模板方法 Spinach spinach = new Spinach(); spinach.CookVegetable(); Thread.Sleep(5000); //创建 阅读全文

posted @ 2018-02-23 23:23 雪域凌晨 阅读(130) 评论(0) 推荐(0) 编辑

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

摘要: 优点: 缺点: 原文地址http://www.cnblogs.com/zhili/p/ProxyPattern.html 阅读全文

posted @ 2018-02-23 22:45 雪域凌晨 阅读(116) 评论(0) 推荐(0) 编辑

导航