event


Snippet Details

Shortcut
event6
Description
Code snippet for event declaration and method for raising it in C# 6
Language
csharp
Types
Expansion
Author
Reflection IT BV
Upload on
3/26/2015 8:58:26 AM
Downloads
641

Declarations

ID ToolTip Default
eventname Event name, either NounVerbing or Verbing for pre-events, or NounVerbed or Verbed for post-events NounVerbed

Code Output

        public event EventHandler $eventname$;
 
        protected virtual void On$eventname$()
        {
            $eventname$?.Invoke(this, EventArgs.Empty);
        }
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages