Re-Thinking C# Events(houseofbilz.com)

submitted by BrianGenisioBrianGenisio(1000) 2 years, 11 months 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) 2 years, 8 months ago 0

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

Reply

information Login or create an account to comment on this story