﻿<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>Try Catch</Title>
            <Shortcut>try</Shortcut>
            <Description>Expansion snippet for try catch</Description>
            <Author>Microsoft Corporation</Author>
            <SnippetTypes>
                <SnippetType>Expansion</SnippetType>
                <SnippetType>SurroundWith</SnippetType>
            </SnippetTypes>
        </Header>
        <Snippet>
            <Declarations>
                <Literal default="true">
                    <ID>expression</ID>
                    <ToolTip>Exception Type</ToolTip>
                    <Default>System.Exception</Default>
                </Literal>
            </Declarations>
            <Code Language="vjsharp" Format="CData"><![CDATA[try 
{           
    $selected$
}
catch ($expression$ ex)
{
    $end$
    throw ex;
}]]>
</Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>
