Introduction - If you have any usage issues, please Google them yourself
design patterns-- Visitor visitors model allows us to model without changing the original structure on the basis of constantly adding new features. ICumulation interface definition of the method Cumulate (), designed to calculate a+2+ ...+ n, there are two different method, a general superposition GeneralArithmetic algorithm, is a Gaussian algorithms GaoSiArithmetic. For some reason, the system needs to add functions for the average, there is a calculation of n and the square. As a general idea, we need to define ICumulation two methods were calculated and the average square, and in achieving category by adding the corresponding method. The erection of a visitor model, after adding functional code are transferred to ICumulationVisitor, adding the two functions were also a subclass Aver
Packet : 121114143visitor.rar filelist
Visitor\code\App.ico
Visitor\code\AssemblyInfo.cs
Visitor\code\bin\Debug
Visitor\code\bin
Visitor\code\GaoSiArithmetic.cs
Visitor\code\GereralArithmetic.cs
Visitor\code\ICumulation.cs
Visitor\code\MainForm.cs
Visitor\code\MainForm.resx
Visitor\code\obj\Debug
Visitor\code\obj
Visitor\code\Visitor\AverageVisitor.cs
Visitor\code\Visitor\ICumulationVisitor.cs
Visitor\code\Visitor\PowerVisitor.cs
Visitor\code\Visitor
Visitor\code\Visitor.csproj
Visitor\code\Visitor.csproj.user
Visitor\code\Visitor.sln
Visitor\code\Visitor.suo
Visitor\code
Visitor\structure.vsd
Visitor\Visitor.txt
Visitor