Click here to Skip to main content
15,889,992 members
Articles / Programming Languages / C#

A Simple Code Snippet to Add an Event

Rate me:
Please Sign up or sign in to vote.
4.98/5 (36 votes)
8 Jun 2012CPOL1 min read 37.8K   321   14  
Adding an event to your class is simple, but it needs a bit of typing. I'm lazy, so I'd rather Visual Studio did the work. This snippet works in the same way as the "prop" snippet.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO
Wales Wales
Born at an early age, he grew older. At the same time, his hair grew longer, and was tied up behind his head.
Has problems spelling the word "the".
Invented the portable cat-flap.
Currently, has not died yet. Or has he?

Comments and Discussions