home *** CD-ROM | disk | FTP | other *** search
/ ftp.tcs3.com / ftp.tcs3.com.tar / ftp.tcs3.com / DRIVERS / Audio / Office2010 / InfoPath.en-us / InfLR.cab / FL_prop_snippet_121851_ENU____.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Extensible Markup Language  |  2009-04-01  |  1KB  |  42 lines

  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>prop</Title>
  6.             <Shortcut>prop</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>