From c787152031d412e0497d52066dc9c6dc436dbea5 Mon Sep 17 00:00:00 2001 From: Petrutiu Mihai Date: Wed, 20 Jul 2016 16:58:56 +0300 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f091a91..499239f 100644 --- a/README.md +++ b/README.md @@ -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