Re-Thinking C# Events (houseofbilz.com)

submitted by BrianGenisioBrianGenisio(850) 11 months, 24 days ago

When I was learning C#, I was taught a pattern to use when declaring events. That pattern is rather cumbersome. Through the magic of generics and extension methods, this pattern can be generalized to a single line of code. This article explores the new pattern.

1 comment | category: | Views: 16

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 pckujawapckujawa(0) 8 months, 25 days ago

Works for me, and it seems like a great way to deal with lots of events.

information Login or create an account to comment on this story