Error!
Success!

Delegates and Visitors in C#

0
kicks

Delegates and Visitors in C#  (Unpublished)

The GoF visitor pattern is useful but awkward. The usual c++ or Java-y versions typically involve some kind of visitor interface which your visitor must subclass. Java somewhat mitigates this with anonymous classes, but not fully. In C#, if we’re clever with the use of delegates, we can make tasks like tree traversal look about as simple as iteration.


Kicked By:
Drop Kicked By: