C# 设计模式


Libing@2019

创建型模式(Creational Patterns

  1. 简单工厂模式(Simple Factory)
  2. 工厂方法模式(Factory Method)
  3. 抽象工厂模式(Abstract Factory)
  4. 建造者模式(Builder)
  5. 原型模式(Prototype)

结构型模式(Structural Patterns)

  1. 桥接模式(Bridge)
  2. 组合模式(Composite)
  3. 装饰模式(Decorator)
  4. 外观模式(Facade)
  5. 享元模式(Flyweight)
  6. 代理模式(Proxy)

行为型模式(Behavioral Patterns)

  1. 职责链模式(Chain of Responsibility)
  2. 命令模式(Command)
  3. 解释器模式(Interpreter)
  4. 迭代器模式(Iterator)
  5. 中介者模式(Mediator)
  6. 备忘录模式(Memento)
  7. 观察者模式(Oberver)
  8. 状态模式(State)
  9. 策略模式(Strategy)
  10. 模板方法模式(Template Method)
  11. 访问者模式(Visitor)

数据访问模式

  1.  Identity Map(标识映射)模式