Visual Studio does not provide a complete event-defined code snippets. There is only one code snippets called invoke for thread-safe event calls. This invoke has some inconveniences, use of invoke:
First, you need to specify the eventhandler type. This is solved in the VaR after C #3.0, and no special write type is required, now few people write C # in Visual Studio 2005 or earlier versions, so we can popularize var.
Second, the code snippets does not provide any parameters for the event call. You have to write it by yourself. After you define it, press enter and the cursor will be placed in the parameter brackets, you need to add this and E on your own. Inconvenient.
Share the code snippets, Eve, and eveg of two commonly used events (maybe you have used other similar events)
Eve stands for defining an eventhandler type event. All you need to do is enter your event name. Other events are generated for you.
Eveg is the execution of the eventhandler <t> generic type, with an additional generic parameter type:
File Download
Note: This is an archive of Microsoft SkyDrive. Please download it directly in your browser. Some download tools may not be available for download.
File Type:. snippet