Advertisement
Dennisaa

Snippet0101

Oct 13th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.08 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.     <CodeSnippet Format="1.0.0">
  4.         <Header>
  5.             <Title>propfull</Title>
  6.             <Shortcut>propfull</Shortcut>
  7.             <Description>Code snippet for property and backing field</Description>
  8.             <Author>Microsoft Corporation</Author>
  9.             <SnippetTypes>
  10.                 <SnippetType>Expansion</SnippetType>
  11.             </SnippetTypes>
  12.         </Header>
  13.         <Snippet>
  14.             <Declarations>
  15.                 <Literal>
  16.                     <ID>type</ID>
  17.                     <ToolTip>Property type</ToolTip>
  18.                     <Default>int</Default>
  19.                 </Literal>
  20.                 <Literal>
  21.                     <ID>property</ID>
  22.                     <ToolTip>Property name</ToolTip>
  23.                     <Default>MyProperty</Default>
  24.                 </Literal>
  25.                 <Literal>
  26.                     <ID>field</ID>
  27.                     <ToolTip>The variable backing this property</ToolTip>
  28.                     <Default>myVar</Default>
  29.                 </Literal>
  30.             </Declarations>
  31.             <Code Language="csharp"><![CDATA[private $type$ $field$;
  32.  
  33.     public $type$ $property$
  34.     {
  35.         get { return $field$;}
  36.         set { $field$ = value;}
  37.     }
  38.     $end$]]>
  39.             </Code>
  40.         </Snippet>
  41.     </CodeSnippet>
  42. </CodeSnippets>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement