实例介绍
十几个设计模式实例 包含常用的设计模式 抽象工厂模式、装饰者模式、观察者模式、代理模式、模板方法模式、策略模式、工厂方法模式、原型模式、外观模式、适配器、迭代器、组合模式等
【实例截图】
【核心代码】
4744300845192197959.rar
└── 设计模式例子DesignPattern
└── DesignPattern
├── AbstractFactory
│ ├── AbstractDepFactory.cs
│ ├── AbstractFactory.csproj
│ ├── AbstractFactory.csproj.user
│ ├── bin
│ │ └── Debug
│ │ ├── AbstractFactory.exe
│ │ ├── AbstractFactory.pdb
│ │ ├── AbstractFactory.vshost.exe
│ │ └── AbstractFactory.vshost.exe.manifest
│ ├── Building.cs
│ ├── ClassDiagram1.cd
│ ├── DevelopBuilding.cs
│ ├── DevelopDepFactory.cs
│ ├── Developer.cs
│ ├── obj
│ │ └── Debug
│ │ ├── AbstractFactory.csproj.FileListAbsolute.txt
│ │ ├── AbstractFactory.exe
│ │ ├── AbstractFactory.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Person.cs
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── TestBuilding.cs
│ ├── TestDepFactory.cs
│ └── Tester.cs
├── Adapter
│ ├── Adaptee.cs
│ ├── Adapter.cs
│ ├── Adapter.csproj
│ ├── bin
│ │ └── Debug
│ │ ├── Adapter.exe
│ │ ├── Adapter.pdb
│ │ ├── Adapter.vshost.exe
│ │ └── Adapter.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── ITarget.cs
│ ├── obj
│ │ └── Debug
│ │ ├── Adapter.csproj.FileListAbsolute.txt
│ │ ├── Adapter.exe
│ │ ├── Adapter.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Program.cs
│ └── Properties
│ └── AssemblyInfo.cs
├── Command
│ ├── bin
│ │ └── Debug
│ │ ├── Command.exe
│ │ ├── Command.pdb
│ │ ├── Command.vshost.exe
│ │ └── Command.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── Command.csproj
│ ├── ConcreteCommandA.cs
│ ├── ConcreteCommandB.cs
│ ├── ICommand.cs
│ ├── Invoke.cs
│ ├── obj
│ │ └── Debug
│ │ ├── Command.csproj.FileListAbsolute.txt
│ │ ├── Command.exe
│ │ ├── Command.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── ReceiveA.cs
│ └── ReceiveB.cs
├── Composite
│ ├── bin
│ │ └── Debug
│ │ ├── Composite.exe
│ │ ├── Composite.pdb
│ │ ├── Composite.vshost.exe
│ │ └── Composite.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── Component.cs
│ ├── Composite.csproj
│ ├── Compsite.cs
│ ├── Leaf.cs
│ ├── obj
│ │ └── Debug
│ │ ├── Composite.csproj.FileListAbsolute.txt
│ │ ├── Composite.exe
│ │ ├── Composite.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Program.cs
│ └── Properties
│ └── AssemblyInfo.cs
├── Decorator
│ ├── bin
│ │ └── Debug
│ │ ├── Decorator.exe
│ │ ├── Decorator.pdb
│ │ ├── Decorator.vshost.exe
│ │ └── Decorator.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── Component.cs
│ ├── ConcreteComponent.cs
│ ├── ConcreteDecoratorA.cs
│ ├── ConcreteDecoratorB.cs
│ ├── Decorator.cs
│ ├── Decorator.csproj
│ ├── Decorator.csproj.user
│ ├── obj
│ │ └── Debug
│ │ ├── Decorator.csproj.FileListAbsolute.txt
│ │ ├── Decorator.exe
│ │ ├── Decorator.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Program.cs
│ └── Properties
│ └── AssemblyInfo.cs
├── DelegateObserver
│ ├── bin
│ │ └── Debug
│ │ ├── DelegateObserver.exe
│ │ ├── DelegateObserver.pdb
│ │ └── DelegateObserver.vshost.exe
│ ├── ButtonPager.cs
│ ├── ClassDiagram1.cd
│ ├── Control.cs
│ ├── DelegateObserver.csproj
│ ├── GridView.cs
│ ├── Label.cs
│ ├── ListPager.cs
│ ├── obj
│ │ └── Debug
│ │ ├── DelegateObserver.csproj.FileListAbsolute.txt
│ │ ├── DelegateObserver.exe
│ │ ├── DelegateObserver.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Pager.cs
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── Stuct
│ ├── Bandit.cs
│ ├── ConcreteSubject.cs
│ ├── Example.cs
│ ├── ISubject.cs
│ └── thief.cs
├── DesignPattern
│ ├── bin
│ │ └── Debug
│ │ ├── DesignPattern.vshost.exe
│ │ └── DesignPattern.vshost.exe.manifest
│ ├── DesignPattern.vbproj
│ ├── DesignPattern.vbproj.user
│ ├── My Project
│ └── obj
│ └── Debug
│ └── TempPE
├── DesignPattern.sln
├── DesignPattern.suo
├── Facade
│ ├── bin
│ │ └── Debug
│ │ ├── Facade.exe
│ │ ├── Facade.pdb
│ │ ├── Facade.vshost.exe
│ │ └── Facade.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── Facade.cs
│ ├── Facade.csproj
│ ├── obj
│ │ └── Debug
│ │ ├── Facade.csproj.FileListAbsolute.txt
│ │ ├── Facade.exe
│ │ ├── Facade.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── SubSystemFour.cs
│ ├── SubSystemOne.cs
│ ├── SubSystemThree.cs
│ └── SubSystemTwo.cs
├── FactoryMothed
│ ├── AbstractPersonFactory.cs
│ ├── bin
│ │ └── Debug
│ │ ├── FactoryMothed.exe
│ │ ├── FactoryMothed.pdb
│ │ ├── FactoryMothed.vshost.exe
│ │ └── FactoryMothed.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── Developer.cs
│ ├── DeveloperFactory.cs
│ ├── FactoryMothed.csproj
│ ├── obj
│ │ └── Debug
│ │ ├── FactoryMothed.csproj.FileListAbsolute.txt
│ │ ├── FactoryMothed.exe
│ │ ├── FactoryMothed.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Person.cs
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── SimplePersonFactory.cs
│ ├── Tester.cs
│ └── TesterFactory.cs
├── Iterator
│ ├── Aggregate.cs
│ ├── bin
│ │ └── Debug
│ │ ├── Iterator.exe
│ │ ├── Iterator.pdb
│ │ ├── Iterator.vshost.exe
│ │ └── Iterator.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── ConcreteAggregate.cs
│ ├── ConcreteIterator.cs
│ ├── Iterator.cs
│ ├── Iterator.csproj
│ ├── obj
│ │ └── Debug
│ │ ├── Iterator.csproj.FileListAbsolute.txt
│ │ ├── Iterator.exe
│ │ ├── Iterator.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Program.cs
│ └── Properties
│ └── AssemblyInfo.cs
├── MVC
│ ├── BeatControl.cs
│ ├── BeatModel.cs
│ ├── bin
│ │ └── Debug
│ │ ├── MVC.exe
│ │ ├── MVC.pdb
│ │ ├── MVC.vshost.exe
│ │ └── MVC.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── Form1.cs
│ ├── Form1.Designer.cs
│ ├── Form1.resx
│ ├── IBeatModel.cs
│ ├── IController.cs
│ ├── MidiVirtual.cs
│ ├── MVC.csproj
│ ├── obj
│ │ └── Debug
│ │ ├── MVC.csproj.FileListAbsolute.txt
│ │ ├── MVC.csproj.GenerateResource.Cache
│ │ ├── MVC.exe
│ │ ├── MVC.Form1.resources
│ │ ├── MVC.pdb
│ │ ├── MVC.View.resources
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── View.cs
│ ├── View.Designer.cs
│ └── View.resx
├── MVC2
│ ├── bin
│ │ └── Debug
│ │ ├── MVC2.exe
│ │ ├── MVC2.pdb
│ │ ├── MVC2.vshost.exe
│ │ └── MVC2.vshost.exe.manifest
│ ├── enum.cs
│ ├── IVehicleControl.cs
│ ├── IVehicleModel.cs
│ ├── IVehicleView.cs
│ ├── MVC2.csproj
│ ├── obj
│ │ └── Debug
│ │ ├── MVC2.csproj.FileListAbsolute.txt
│ │ ├── MVC2.exe
│ │ ├── MVC2.pdb
│ │ └── TempPE
│ ├── Program.cs
│ └── Properties
│ └── AssemblyInfo.cs
├── Observer
│ ├── bin
│ │ └── Debug
│ │ ├── Observer.exe
│ │ ├── Observer.pdb
│ │ ├── Observer.vshost.exe
│ │ └── Observer.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── obj
│ │ └── Debug
│ │ ├── Observer.csproj.FileListAbsolute.txt
│ │ ├── Observer.exe
│ │ ├── Observer.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Observer
│ │ ├── ConcreteObserver.cs
│ │ └── IObserver.cs
│ ├── Observer.csproj
│ ├── Observer.csproj.user
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── Subject
│ ├── AbstractSubject.cs
│ └── ConcreteSubject.cs
├── Prototype
│ ├── bin
│ │ └── Debug
│ │ ├── Prototype.exe
│ │ ├── Prototype.pdb
│ │ ├── Prototype.vshost.exe
│ │ └── Prototype.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── ConcretePrototype.cs
│ ├── obj
│ │ └── Debug
│ │ ├── Prototype.csproj.FileListAbsolute.txt
│ │ ├── Prototype.exe
│ │ ├── Prototype.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Prototype.cs
│ └── Prototype.csproj
├── Proxy
│ ├── bin
│ │ └── Debug
│ │ ├── Proxy.exe
│ │ ├── Proxy.pdb
│ │ ├── Proxy.vshost.exe
│ │ └── Proxy.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── obj
│ │ └── Debug
│ │ ├── Proxy.csproj.FileListAbsolute.txt
│ │ ├── Proxy.exe
│ │ ├── Proxy.pdb
│ │ ├── Refactor
│ │ └── TempPE
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Proxy.cs
│ ├── Proxy.csproj
│ ├── RealSubject.cs
│ └── Subject.cs
├── State
│ ├── bin
│ │ └── Debug
│ │ ├── State.exe
│ │ ├── State.pdb
│ │ ├── State.vshost.exe
│ │ └── State.vshost.exe.manifest
│ ├── ClassDiagram1.cd
│ ├── ConcreteStateA.cs
│ ├── ConcreteStateB.cs
│ ├── ConcreteStateC.cs
│ ├── Context.cs
│ ├── obj
│ │ └── Debug
│ │ ├── Refactor
│ │ ├── State.csproj.FileListAbsolute.txt
│ │ ├── State.exe
│ │ ├── State.pdb
│ │ └── TempPE
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── State.cs
│ └── State.csproj
├── Strategy
│ ├── bin
│ │ └── Debug
│ │ ├── Strategy.pdb
│ │ ├── Strategy.vshost.exe
│ │ └── Strategy.vshost.exe.manifest
│ ├── Building.cs
│ ├── ClassDiagram1.cd
│ ├── Cry
│ │ ├── ICry.cs
│ │ ├── NoCry.cs
│ │ ├── WangCry.cs
│ │ └── WuCry.cs
│ ├── Department.cs
│ ├── DevelopBuilding.cs
│ ├── Developer.cs
│ ├── Dog
│ │ ├── BigDog.cs
│ │ ├── Dog.cs
│ │ ├── LittleDog.cs
│ │ └── WoodenDog.cs
│ ├── obj
│ │ └── Debug
│ │ ├── Refactor
│ │ ├── Strategy.csproj.FileListAbsolute.txt
│ │ └── TempPE
│ ├── Person.cs
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Run
│ │ ├── IRun.cs
│ │ ├── NoRun.cs
│ │ └── Run.cs
│ ├── Strategy.csproj
│ ├── Strategy.csproj.user
│ ├── TestBuilding.cs
│ └── Tester.cs
└── TemplateMethod
├── AbstractClass.cs
├── bin
│ └── Debug
│ ├── TemplateMethod.exe
│ ├── TemplateMethod.pdb
│ └── TemplateMethod.vshost.exe
├── ClassDiagram1.cd
├── ConcreteClass.cs
├── obj
│ └── Debug
│ ├── Refactor
│ ├── TemplateMethod.csproj.FileListAbsolute.txt
│ ├── TemplateMethod.exe
│ ├── TemplateMethod.pdb
│ └── TempPE
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
└── TemplateMethod.csproj
150 directories, 296 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论