前言
创建型
结构性
行为型
Simple Factory
1 | using System.Collections; |
Factory
1 | namespace CsharpDesignPattern.Factory |
AbstractFactory
1 | namespace CsharpDesignPattern.AbstractFactory |
Singleton
1 | namespace CsharpDesignPattern.Singleton |
Adapter
1 | namespace CsharpDesignPattern.Adapter |
Proxy
1 | namespace CsharpDesignPattern.Proxy |
Facade
1 | namespace CsharpDesignPattern.Facade |
Mediator
1 | namespace CsharpDesignPattern.Mediator |
Observer
1 | namespace CsharpDesignPattern.Observer |
Strategy
1 | namespace CsharpDesignPattern.Strategy |