Created
March 4, 2014 08:22
-
-
Save EifelMono/9342332 to your computer and use it in GitHub Desktop.
propf.snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>propf</Title> | |
<Shortcut>propf</Shortcut> | |
<Description>Code snippet for property and backing field with region and init value</Description> | |
<Author>Microsoft Corporation</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal> | |
<ID>type</ID> | |
<ToolTip>Property type</ToolTip> | |
<Default>type</Default> | |
</Literal> | |
<Literal> | |
<ID>name</ID> | |
<ToolTip>Property name</ToolTip> | |
<Default>name</Default> | |
</Literal> | |
<Literal> | |
<ID>value</ID> | |
<ToolTip>Default Value</ToolTip> | |
<Default>value</Default> | |
</Literal> | |
</Declarations> | |
<Code Language="csharp"><![CDATA[ | |
#region Property $name$ | |
private $type$ m_$name$=$value$; | |
public $type$ $name$ | |
{ | |
get { return m_$name$;} | |
set { m_$name$ = value;} | |
} | |
#endregion | |
$end$]]> | |
</Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment