Description: The strategy pattern typical demonstration program C# source code, demo program a good explanation of the policy mode programming template. Source include: cash charges abstract class (cash charge superclass abstract methods, to receive cash, the parameters for the original price, return to the current price), the normal fee subclass, discount toll subclass (discounted fees, initialization will need to enter the discount rate, such as 20 off, is 0.8), the rebate toll subclass (rebate charges, initialization must Rebate and rebate value, such as full 300 back to 100, moneyCondition for 300 100 moneyReturn, greater than the rebate, need to subtract the rebate value), cash charges factory class.
To Search:
File list (Check if you may need any files):
celuemoshi\CeLueMoShi\CeLueMoShi\CeLueMoShi.csproj
..........\..........\..........\Form1.cs
..........\..........\..........\Form1.Designer.cs
..........\..........\..........\Form1.resx
..........\..........\..........\Program.cs
..........\..........\..........\...perties\AssemblyInfo.cs
..........\..........\..........\..........\Resources.Designer.cs
..........\..........\..........\..........\Resources.resx
..........\..........\..........\..........\Settings.Designer.cs
..........\..........\..........\..........\Settings.settings
..........\..........\CeLueMoShi.sln
..........\..........\CeLueMoShi.suo
..........\..........\..........\Properties
..........\..........\CeLueMoShi
..........\CeLueMoShi
celuemoshi