資源簡介
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Collections;
using?System.Text;
namespace?享元模式
{
????class?Program
????{
????????static?void?Main(string[]?args)
????????{
????????????int?extrinsicstate?=?22;
????????????FlyweightFactory?f?=?new?FlyweightFactory();
????????????Flyweight?fx?=?f.GetFlyweight(“X“);
????????????fx.Operation(--extrinsicstate);
????????????Flyweight?fy?=?f.GetFlyweight(“Y“);
????????????fy.Operation(--extrinsicstate);
????????????Flyweight?fz?=?f.GetFlyweight(“Z“);
????????????fz.Operation(--extrinsicstate);
????????????UnsharedConcreteFlyweight?uf?=?new?UnsharedConcreteFlyweight();
????????????uf.Operation(--extrinsicstate);
????????????Console.Read();
????????}
????}
????class?FlyweightFactory
????{
??????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2009-03-23?08:56??享元模式-基本代碼\
?????目錄???????????0??2009-03-23?08:56??享元模式-基本代碼\享元模式\
?????文件?????????925??2007-05-28?09:51??享元模式-基本代碼\享元模式.sln
?????文件???????10752??2007-07-26?21:24??享元模式-基本代碼\享元模式.suo
?????目錄???????????0??2009-03-23?08:56??享元模式-基本代碼\享元模式\bin\
?????目錄???????????0??2009-03-23?08:56??享元模式-基本代碼\享元模式\bin\Debug\
?????文件???????16384??2007-07-26?21:24??享元模式-基本代碼\享元模式\bin\Debug\享元模式.exe
?????文件???????15872??2007-07-26?21:24??享元模式-基本代碼\享元模式\bin\Debug\享元模式.pdb
?????文件????????5632??2005-11-11?22:25??享元模式-基本代碼\享元模式\bin\Debug\享元模式.vshost.exe
?????目錄???????????0??2009-03-23?08:56??享元模式-基本代碼\享元模式\obj\
?????目錄???????????0??2009-03-23?08:56??享元模式-基本代碼\享元模式\obj\Debug\
?????目錄???????????0??2009-03-23?08:56??享元模式-基本代碼\享元模式\obj\Debug\TempPE\
?????文件???????16384??2007-07-26?21:24??享元模式-基本代碼\享元模式\obj\Debug\享元模式.exe
?????文件???????15872??2007-07-26?21:24??享元模式-基本代碼\享元模式\obj\Debug\享元模式.pdb
?????文件?????????154??2007-07-26?21:24??享元模式-基本代碼\享元模式\obj\享元模式.csproj.FileList.txt
?????文件????????1778??2007-07-26?21:24??享元模式-基本代碼\享元模式\Program.cs
?????目錄???????????0??2009-03-23?08:56??享元模式-基本代碼\享元模式\Properties\
?????文件????????1195??2007-05-28?09:51??享元模式-基本代碼\享元模式\Properties\AssemblyInfo.cs
?????文件????????1958??2007-05-28?09:51??享元模式-基本代碼\享元模式\享元模式.csproj
?????目錄???????????0??2009-03-23?08:56??享元模式-網站01\
?????目錄???????????0??2009-03-23?08:56??享元模式-網站01\享元模式\
?????文件?????????925??2007-05-28?09:51??享元模式-網站01\享元模式.sln
?????文件???????10752??2007-07-25?06:58??享元模式-網站01\享元模式.suo
?????目錄???????????0??2009-03-23?08:56??享元模式-網站01\享元模式\bin\
?????目錄???????????0??2009-03-23?08:56??享元模式-網站01\享元模式\bin\Debug\
?????文件???????16384??2007-07-25?06:58??享元模式-網站01\享元模式\bin\Debug\享元模式.exe
?????文件???????15872??2007-07-25?06:58??享元模式-網站01\享元模式\bin\Debug\享元模式.pdb
?????文件????????5632??2005-11-11?22:25??享元模式-網站01\享元模式\bin\Debug\享元模式.vshost.exe
?????目錄???????????0??2009-03-23?08:56??享元模式-網站01\享元模式\obj\
?????目錄???????????0??2009-03-23?08:56??享元模式-網站01\享元模式\obj\Debug\
?????目錄???????????0??2009-03-23?08:56??享元模式-網站01\享元模式\obj\Debug\Refactor\
............此處省略48個文件信息
評論
共有 條評論