Advertisement
simonradev

ParseSnippet

Mar 22nd, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.88 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <CodeSnippets  
  3.    xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">  
  4.     <CodeSnippet Format="1.0.0">  
  5.         <Header>  
  6.             <Title>int.Parse(Console.ReadLine())</Title>  
  7.             <Author>Myself</Author>  
  8.             <Description>Reads string and parses it to int</Description>  
  9.             <Shortcut>par</Shortcut>  
  10.         </Header>
  11.         <Snippet>    
  12.             <Declarations>
  13.                 <Literal>
  14.                     <ID>type</ID>
  15.                     <ToolTip>Type to parse</ToolTip>
  16.                     <Default>int</Default>
  17.                 </Literal>
  18.                 <Literal>
  19.                     <ID>expression</ID>
  20.                     <ToolTip>Expression to evaluate</ToolTip>
  21.                     <Default>Console.ReadLine()</Default>
  22.                 </Literal>
  23.             </Declarations>
  24.             <Code Language="csharp">  
  25.                 <![CDATA[$type$.Parse($expression$);]]>  
  26.             </Code>  
  27.         </Snippet>  
  28.     </CodeSnippet>  
  29. </CodeSnippets>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement