65.9K
CodeProject is changing. Read more.
Home

A Simple Code Snippet to Add an Event

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.98/5 (33 votes)

Jun 8, 2012

CPOL

1 min read

viewsIcon

39818

downloadIcon

345

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.