DesignPatterns
Intro 簡介
Design patterns from 《大話設(shè)計(jì)模式》 and implemented by C# language.
《大話設(shè)計(jì)模式》 中設(shè)計(jì)模式總結(jié)/C#代碼實(shí)現(xiàn),示例代碼需運(yùn)行在 .NetCore2.0 下,如果要自己編譯請下載安裝 .NetCore Sdk
Overview 概覽
設(shè)計(jì)模式大體上可分為三類:
-
創(chuàng)建型模式(Create)
- 簡單工廠(SimpleFactory)
- 抽象工廠(AbstractFactory)
- 工廠方法(FactoryMethod)
- 建造者模式(Builder)
- 原型模式(Prototype)
- 單例模式(Singleton)
-
結(jié)構(gòu)型模式(Structure)
- 適配器模式(Adapter)
- 橋接模式(Bridge)
- 組合模式(Composite)
- 裝飾者模式(Decorator)
- 外觀模式(Facade)
- 享元模式(Flyweight)
- 代理模式(Proxy)
-
行為型模式(Behavior)
- 觀察者模式(Observer)
- 模板方法(TemplateMethod)
- 命令模式(Command)
- 狀態(tài)模式(State)
- 職責(zé)鏈模式(Chain of Responsibility)
- 解釋器模式(Interpreter)
- 中介者模式(Mediator)
- 訪問者模式(Visitor)
- 備忘錄模式(Memento)
- 迭代器模式(Iterator)
More
更多設(shè)計(jì)模式及示例代碼 傳送門
Contact
Contact me: weihanli@outlook.com