Skip to content

Instantly share code, notes, and snippets.

@EifelMono
Created March 4, 2014 08:22
Show Gist options
  • Save EifelMono/9342332 to your computer and use it in GitHub Desktop.
Save EifelMono/9342332 to your computer and use it in GitHub Desktop.
propf.snippet
<?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