设计模式概览

作者: 天天向上卡索 | 来源:发表于2018-04-01 23:32 被阅读26次

    DesignPatterns

    Intro 简介

    Design patterns from 《大话设计模式》 and implemented by C# language.

    《大话设计模式》 中设计模式总结/C#代码实现,示例代码需运行在 .NetCore2.0 下,如果要自己编译请下载安装 .NetCore Sdk

    Overview 概览

    设计模式大体上可分为三类:

    • 创建型模式(Create)

      1. 简单工厂(SimpleFactory)
      2. 抽象工厂(AbstractFactory)
      3. 工厂方法(FactoryMethod)
      4. 建造者模式(Builder)
      5. 原型模式(Prototype)
      6. 单例模式(Singleton)
    • 结构型模式(Structure)

      1. 适配器模式(Adapter)
      2. 桥接模式(Bridge)
      3. 组合模式(Composite)
      4. 装饰者模式(Decorator)
      5. 外观模式(Facade)
      6. 享元模式(Flyweight)
      7. 代理模式(Proxy)
    • 行为型模式(Behavior)

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

    More

    更多设计模式及示例代码 传送门

    Contact

    Contact me: weihanli@outlook.com

    相关文章

      网友评论

        本文标题:设计模式概览

        本文链接:https://www.haomeiwen.com/subject/lqpzcftx.html