Update README.md

This commit is contained in:
Petrutiu Mihai
2016-07-20 16:58:56 +03:00
committed by GitHub
parent 12bec9253c
commit c787152031

View File

@@ -521,7 +521,7 @@ Sequence diagram for the visitor pattern:
* Every time you add a new visitable object, you need to modify all the visitors.
### e. Flavors
* In languages like C#, instead of having all the Concrete Visitable implemement the Visitable, we could use
* In languages like C#, instead of having all the Concrete Visitable implemement the Visitable, we could have ObjectStructure invoke the visitor using dynamic, so something like visitor.Visit((dynamic)visitable) and let c# redirect the call to the appropiate method.
### f. Examples
* Calculate money of corruption subject: Starting class: CalculateMoney.WithVisitor.CalaculateMoneyWithVisitorExample