Skip to content

Instantly share code, notes, and snippets.

@jonstodle
Created August 8, 2016 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonstodle/e1d77c59c83e06062d124b9383f557c2 to your computer and use it in GitHub Desktop.
Save jonstodle/e1d77c59c83e06062d124b9383f557c2 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>Property with INPC</Title>
<Author>Jon Stødle</Author>
<Description>Inserts a property which implements INotifyPropertyChanged</Description>
<HelpUrl></HelpUrl>
<Shortcut>propc</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal Editable="true">
<ID>type</ID>
<ToolTip>Type of property</ToolTip>
<Default>string</Default>
<Function>
</Function>
</Literal>
<Literal Editable="true">
<ID>backingField</ID>
<ToolTip>Name of backing field</ToolTip>
<Default>myBackingField</Default>
<Function>
</Function>
</Literal>
<Literal Editable="true">
<ID>propertyName</ID>
<ToolTip>Name of property</ToolTip>
<Default>MyProperty</Default>
<Function>
</Function>
</Literal>
</Declarations>
<Code Language="csharp" Delimiter="$"><![CDATA[
// Insert code block from below here
$end$]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment