EventArgs.Empty - Do You Use It? (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 4 months ago

Anyway, we can define EventArgs as a private member and use it instead of allocating an EventArgs object every time the event is raised. Fortunately, there is no need for that, C# introduce us the EventArgs.Empty...

3 comments |category: |Views: 343

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 fquednaufquednau(404) 3 years, 4 months ago 0

You've got to the kidding...
In another post, someone writes on the merits of being able to compare against null.

Reply

posted by sirroccosirrocco(800) 3 years, 4 months ago 0

seems like nobody knew about EventArgs.Empty :)

Reply

posted by sirroccosirrocco(800) 3 years, 4 months ago 0

nobody as in - "many people" :)

Reply

information Login or create an account to comment on this story