The Convert Event To Event With Custom Implementation refactoring allows you to easily convert a simple event to event with explicitly implemented add/remove methods.
Note |
|---|
Language Support Supported: C#, VB.NET Not relevant: JavaScript, ASP.NET,XAML, HTML |
To convert an event to event with custom implementation
Select the event you want to convert and press Alt+Insert. From the pop-up menu select To Custom Event Implementation.
The result is:
See Also