﻿<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>a common constructor pattern</Title>
            <Shortcut>ctor</Shortcut>
            <Description>Expansion for constructor</Description>
            <Author>Microsoft Corporation</Author>
            <SnippetTypes>
                <SnippetType>Expansion</SnippetType>
            </SnippetTypes>
        </Header>
        <Snippet>
            <Declarations>
                <Literal>
                    <ID>type</ID>
                    <Default>int</Default>
                </Literal>
                <Literal>
                    <ID>name</ID>
                    <Default>field</Default>
                </Literal>
            <Literal default="true" Editable="false">
                <ID>classname</ID>
                <ToolTip>Class name</ToolTip>
                <Function>ClassName()</Function>
                <Default>ClassNamePlaceholder</Default>
            </Literal>
            </Declarations>
            <Code Language="vjsharp" Format="CData"><![CDATA[   
public $classname$ ($type$ $name$)
{
    this._$name$ = $name$;
    $end$
}

private $type$ _$name$;
]]>
</Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>
