eventargs


Snippet Details

Shortcut
eventargs
Description
Code snippet for event declaration and method for raising it
Language
csharp
Types
Expansion
Author
Fons Sonnemans
Upload on
13-2-2014 21:41:27
Downloads
2901

Declarations

ID ToolTip Default
eventname Event name, either NounVerbing or Verbing for pre-events, or NounVerbed or Verbed for post-events NounVerbed
type Property type int
property Property name MyProperty
field The variable backing this property myField

Code Output

        public class $eventname$EventArgs : EventArgs {
 
            private $type$ _$field$;
            
            public $type$ $property$ {
                get { return this._$field$; }
                private set { this._$field$ = value; }
            }
            
            public $eventname$EventArgs($type$ $field$) {
               this.$property$ = $field$;
            }
        
        }
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages