C#設計模式(0):C#的23種設計模式概括

來源:互聯網
上載者:User

標籤:style   com   os   設計   type   res   

建立型:
        1. 單件模式(SingletonPattern)
        2. 抽象工廠(AbstractFactory)
        3. 建造者模式(Builder)
        4. Factory 方法模式(Factory Method)
        5. 原型模式(Prototype)
結構型:
        6. 適配器模式(AdapterPattern)
        7. 橋接模式(BridgePattern)
        8. 裝飾模式(DecoratorPattern)
        9. 組合模式(CompositePattern)
       10. 面板模式(FacadePattern)
       11. 享元模式(FlyweightPattern)
       12. 代理模式(ProxyPattern)
       13. 模板方法(TemplateMethod)
       14. 命令模式(CommandPattern)
       15. 迭代器模式(IteratorPattern)
行為型:
       16. 觀察者模式(ObserverPattern)
       17. 解譯器模式(InterpreterPattern)
       18. 中介者模式(MediatorPattern)
       19. 職責鏈模式(Chainof Responsibility Pattern)
       20. 備忘錄模式(MementoPattern)
       21. 策略模式(StrategyPattern)
       22. 訪問者模式(VisitorPattern)
       23. 狀態模式(StatePattern)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.