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
26-3-2015 08:58:26
Downloads
2084

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