DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 620 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

38
kicks
published 8 months, 1 day ago, submitted by BigTuna 8 months, 1 day ago

devlicio.us — A very simple technique to avoid the need for a null check prior to raising an event

Add a comment 1 comment | category: | Views: 9 | Get KickIt image code
tags: | tag it

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:
Very nice sugar unless you rely on checking for null events to verify whether or not you have any subscribers for other behavior in your classes. The performance scenarios suggested in the comments are ridiculously unlikely. Anyone designing a framework where events with no subscribers still invoke 10k+ times in quick succession doesn't care about performance anyway, and probably won't understand the benefit of this technique in the first place ;)
posted by jesse 8 months ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads via The Lounge