Delegates and Visitors in C#(mullr.wordpress.com)

submitted by mullrmullr(175) 4 years, 7 months ago

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.

2 comments |category: |Views: 73

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by w3stfa11w3stfa11(645) 4 years, 7 months ago 0

I love Design

Reply

posted by w3stfa11w3stfa11(645) 4 years, 7 months ago 0

Doh, I meant to say,

I love design patterns articles that use .Net.

Reply

information Login or create an account to comment on this story