<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>eventargs</Title>
      <Shortcut>eventargs</Shortcut>
      <Description>Code snippet for event declaration and method for raising it</Description>
      <Author>Reflection IT BV</Author>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
    </Header>
    <Snippet>
      <Declarations>
        <Literal>
          <ID>eventname</ID>
          <ToolTip>Event name, either NounVerbing or Verbing for pre-events, or NounVerbed or Verbed for post-events</ToolTip>
          <Default>NounVerbed</Default>
        </Literal>
        <Literal>
          <ID>type</ID>
          <ToolTip>Property type</ToolTip>
          <Default>int</Default>
        </Literal>
        <Literal>
          <ID>property</ID>
          <ToolTip>Property name</ToolTip>
          <Default>MyProperty</Default>
        </Literal>
        <Literal>
          <ID>field</ID>
          <ToolTip>The variable backing this property</ToolTip>
          <Default>myField</Default>
        </Literal>
      </Declarations>
      <Code Language="csharp">
        <![CDATA[
 
        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$;
            }
        
        }]]>
      </Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>