2021年6月25日

外观模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt 阅读全文

posted @ 2021-06-25 17:24 HowieGo 阅读(33) 评论(0) 推荐(0)

组合模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt 阅读全文

posted @ 2021-06-25 16:29 HowieGo 阅读(40) 评论(0) 推荐(0)

装饰器模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt 阅读全文

posted @ 2021-06-25 13:43 HowieGo 阅读(42) 评论(0) 推荐(0)

适配器模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt 阅读全文

posted @ 2021-06-25 11:50 HowieGo 阅读(37) 评论(0) 推荐(0)

桥接模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Data.SqlClient; 4 using System.Linq; 5 using System.Text; 6 using System.Threading. 阅读全文

posted @ 2021-06-25 11:48 HowieGo 阅读(46) 评论(0) 推荐(0)

原型模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt 阅读全文

posted @ 2021-06-25 11:47 HowieGo 阅读(27) 评论(0) 推荐(0)

建造者模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt 阅读全文

posted @ 2021-06-25 11:45 HowieGo 阅读(31) 评论(0) 推荐(0)

抽象工厂模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt 阅读全文

posted @ 2021-06-25 11:42 HowieGo 阅读(36) 评论(0) 推荐(0)

工厂方法模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt 阅读全文

posted @ 2021-06-25 11:37 HowieGo 阅读(40) 评论(0) 推荐(0)

简单工厂模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt 阅读全文

posted @ 2021-06-25 09:23 HowieGo 阅读(29) 评论(0) 推荐(0)

单例模式

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace DesignPatt 阅读全文

posted @ 2021-06-25 09:21 HowieGo 阅读(28) 评论(0) 推荐(0)

C#设计模式总纲

摘要: 使用设计模式的根本原因:代码总是在不断地变化,使用设计模式可以刚好的适应变化,提高代码的复用性,使代码更容易维护和扩展。 SOLID单一职责原则:类应该保持单一的职责,若包含多个职责可能会形成耦合,职责改变时就可能影响到其他职责,影响类本身的稳定性和代码复用性。 开放封闭原则:软件实体包括类类,函数 阅读全文

posted @ 2021-06-25 09:20 HowieGo 阅读(88) 评论(0) 推荐(0)

导航