文件名称:DesignPatternProgram
- 所属分类:
- 软件工程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 618kb
- 下载次数:
- 0次
- 提 供 者:
- fis****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
使用C#程序将23个常用设计模式进行列表显示,并能够随时根据源代码运行模式代码。方便学习。
其程序界面主要分为四个部分:
1. 模式列表 -- 列出了常用的23个设计模式,通过单击,可以在其他部分显示详细信息;
2. UML 图示 -- 显示模式对应的UML图示;
3. 模式的说明信息或运行效果 -- 根据用户选择,显示以下两种内容(可以通过菜单“Option”切换显示内容):
a.当前选择的模式的信息(如意图、适用性、例子等)
b.利用反射机制根据当前模式的源代码运行后的效果,可以随时更改代码后测试
4. C#源代码区 -- 实现该模式的C#源代码,分为 RealWorld 和 Structural 两种类型。可以通过菜单“Option”切换。
补充说明:
1.本程序的代码来自于一本叫《CSharp 设计模式》的电子文档,具体是谁写的记不得了,向作者致敬^_^
2.编译环境:VS2005 + SP1-err
其程序界面主要分为四个部分:
1. 模式列表 -- 列出了常用的23个设计模式,通过单击,可以在其他部分显示详细信息;
2. UML 图示 -- 显示模式对应的UML图示;
3. 模式的说明信息或运行效果 -- 根据用户选择,显示以下两种内容(可以通过菜单“Option”切换显示内容):
a.当前选择的模式的信息(如意图、适用性、例子等)
b.利用反射机制根据当前模式的源代码运行后的效果,可以随时更改代码后测试
4. C#源代码区 -- 实现该模式的C#源代码,分为 RealWorld 和 Structural 两种类型。可以通过菜单“Option”切换。
补充说明:
1.本程序的代码来自于一本叫《CSharp 设计模式》的电子文档,具体是谁写的记不得了,向作者致敬^_^
2.编译环境:VS2005 + SP1-err
(系统自动生成,下载前可以参看下载内容)
下载文件列表
DesignPattern
.............\CSharp
.............\......\bin
.............\......\...\Debug
.............\......\...\.....\CSharp.exe
.............\......\...\.....\CSharp.pdb
.............\......\...\.....\CSharp.vshost.exe
.............\......\...\Release
.............\......\...\.......\CSharp.exe
.............\......\...\.......\CSharp.pdb
.............\......\...\.......\CSharp.vshost.exe
.............\......\CPatternInfo.cs
.............\......\CPatternList.cs
.............\......\CSharp.csproj
.............\......\CSharp.csproj.vspscc
.............\......\CStringConst.cs
.............\......\FormMain.cs
.............\......\FormMain.Designer.cs
.............\......\FormMain.resx
.............\......\obj
.............\......\...\CSharp.csproj.FileListAbsolute.txt
.............\......\...\Debug
.............\......\...\.....\CSharp.csproj.GenerateResource.Cache
.............\......\...\.....\CSharp.exe
.............\......\...\.....\CSharp.pdb
.............\......\...\.....\CSharp.Properties.Resources.resources
.............\......\...\.....\DesignPattern.FormMain.resources
.............\......\...\.....\TempPE
.............\......\...\Release
.............\......\...\.......\CSharp.csproj.GenerateResource.Cache
.............\......\...\.......\CSharp.exe
.............\......\...\.......\CSharp.pdb
.............\......\...\.......\CSharp.Properties.Resources.resources
.............\......\...\.......\DesignPattern.FormMain.resources
.............\......\...\.......\TempPE
.............\......\Patterns
.............\......\........\AbstractFactoryRealWorld.cs
.............\......\........\AbstractFactoryStructural.cs
.............\......\........\AbstractPattern.cs
.............\......\........\AdapterRealWorld.cs
.............\......\........\AdapterStructural.cs
.............\......\........\BridgeRealWorld.cs
.............\......\........\BridgeStructural.cs
.............\......\........\BuilderRealWorld.cs
.............\......\........\BuilderStructural.cs
.............\......\........\ChainRealWorld.cs
.............\......\........\ChainStructural.cs
.............\......\........\CommandRealWorld.cs
.............\......\........\CommandStructural.cs
.............\......\........\CompositeRealWorld.cs
.............\......\........\CompositeStructural.cs
.............\......\........\DecoratorRealWorld.cs
.............\......\........\DecoratorStructural.cs
.............\......\........\FacadeRealWorld.cs
.............\......\........\FacadeStructural.cs
.............\......\........\FactoryMethodRealWorld.cs
.............\......\........\FactoryMethodStructural.cs
.............\......\........\FlyweightRealWorld.cs
.............\......\........\FlyweightStructural.cs
.............\......\........\InterpreterRealWorld.cs
.............\......\........\InterpreterStructural.cs
.............\......\........\IteratorRealWorld.cs
.............\......\........\IteratorStructural.cs
.............\......\........\MediatorRealWorld.cs
.............\......\........\MediatorStructural.cs
.............\......\........\MementoRealWorld.cs
.............\......\........\MementoStructural.cs
.............\......\........\ObserverRealWorld.cs
.............\......\........\ObserverStructural.cs
.............\......\........\PrototypeRealWorld.cs
.............\......\........\PrototypeStructural.cs
.............\......\........\ProxyRealWorld.cs
.............\......\........\ProxyStructural.cs
.............\......\........\SingletonRealWorld.cs
.............\......\........\SingletonStructural.cs
.............\......\........\StateRealWorld.cs
.............\......\........\StateStructural.cs
.............\......\........\StrategyRealWorld.cs
.............\......\........\StrategyStructural.cs
.............\......\........\TemplateRealWorld.cs
.............\......\........\TemplateStructural.cs
.............\......\........\VisitorRealWorld.cs
.............\......\........\VisitorStructural.cs
.............\......\Program.cs
.............\......\Properties
.............\......\..........\AssemblyInfo.cs
.............\......\..........
.............\CSharp
.............\......\bin
.............\......\...\Debug
.............\......\...\.....\CSharp.exe
.............\......\...\.....\CSharp.pdb
.............\......\...\.....\CSharp.vshost.exe
.............\......\...\Release
.............\......\...\.......\CSharp.exe
.............\......\...\.......\CSharp.pdb
.............\......\...\.......\CSharp.vshost.exe
.............\......\CPatternInfo.cs
.............\......\CPatternList.cs
.............\......\CSharp.csproj
.............\......\CSharp.csproj.vspscc
.............\......\CStringConst.cs
.............\......\FormMain.cs
.............\......\FormMain.Designer.cs
.............\......\FormMain.resx
.............\......\obj
.............\......\...\CSharp.csproj.FileListAbsolute.txt
.............\......\...\Debug
.............\......\...\.....\CSharp.csproj.GenerateResource.Cache
.............\......\...\.....\CSharp.exe
.............\......\...\.....\CSharp.pdb
.............\......\...\.....\CSharp.Properties.Resources.resources
.............\......\...\.....\DesignPattern.FormMain.resources
.............\......\...\.....\TempPE
.............\......\...\Release
.............\......\...\.......\CSharp.csproj.GenerateResource.Cache
.............\......\...\.......\CSharp.exe
.............\......\...\.......\CSharp.pdb
.............\......\...\.......\CSharp.Properties.Resources.resources
.............\......\...\.......\DesignPattern.FormMain.resources
.............\......\...\.......\TempPE
.............\......\Patterns
.............\......\........\AbstractFactoryRealWorld.cs
.............\......\........\AbstractFactoryStructural.cs
.............\......\........\AbstractPattern.cs
.............\......\........\AdapterRealWorld.cs
.............\......\........\AdapterStructural.cs
.............\......\........\BridgeRealWorld.cs
.............\......\........\BridgeStructural.cs
.............\......\........\BuilderRealWorld.cs
.............\......\........\BuilderStructural.cs
.............\......\........\ChainRealWorld.cs
.............\......\........\ChainStructural.cs
.............\......\........\CommandRealWorld.cs
.............\......\........\CommandStructural.cs
.............\......\........\CompositeRealWorld.cs
.............\......\........\CompositeStructural.cs
.............\......\........\DecoratorRealWorld.cs
.............\......\........\DecoratorStructural.cs
.............\......\........\FacadeRealWorld.cs
.............\......\........\FacadeStructural.cs
.............\......\........\FactoryMethodRealWorld.cs
.............\......\........\FactoryMethodStructural.cs
.............\......\........\FlyweightRealWorld.cs
.............\......\........\FlyweightStructural.cs
.............\......\........\InterpreterRealWorld.cs
.............\......\........\InterpreterStructural.cs
.............\......\........\IteratorRealWorld.cs
.............\......\........\IteratorStructural.cs
.............\......\........\MediatorRealWorld.cs
.............\......\........\MediatorStructural.cs
.............\......\........\MementoRealWorld.cs
.............\......\........\MementoStructural.cs
.............\......\........\ObserverRealWorld.cs
.............\......\........\ObserverStructural.cs
.............\......\........\PrototypeRealWorld.cs
.............\......\........\PrototypeStructural.cs
.............\......\........\ProxyRealWorld.cs
.............\......\........\ProxyStructural.cs
.............\......\........\SingletonRealWorld.cs
.............\......\........\SingletonStructural.cs
.............\......\........\StateRealWorld.cs
.............\......\........\StateStructural.cs
.............\......\........\StrategyRealWorld.cs
.............\......\........\StrategyStructural.cs
.............\......\........\TemplateRealWorld.cs
.............\......\........\TemplateStructural.cs
.............\......\........\VisitorRealWorld.cs
.............\......\........\VisitorStructural.cs
.............\......\Program.cs
.............\......\Properties
.............\......\..........\AssemblyInfo.cs
.............\......\..........