Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <CodeSnippets
- xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
- <CodeSnippet Format="1.0.0">
- <Header>
- <Title>ThrowSnippet</Title>
- <Author>Chris Akridge</Author>
- <Shortcut>exthrow</Shortcut>
- <Description>Throws an exception</Description>
- </Header>
- <Declarations>
- <Literal>
- <ID>Type</ID>
- <ToolTip>The type of exception to throw.</ToolTip>
- <Default>Exception</Default>
- </Literal>
- <Literal>
- <ID>Message</ID>
- <ToolTip>The message of the exception</ToolTip>
- <Default>Message</Default>
- </Literal>
- </Declarations>
- <Snippet>
- <Code Language="CSharp">
- <![CDATA[throw new $Type$("$Message$");]]>
- </Code>
- </Snippet>
- </CodeSnippet>
- </CodeSnippets>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement