Skip to content

Instantly share code, notes, and snippets.

@jfoshee
Forked from alexsorokoletov/vmpc.template.xml
Last active August 29, 2015 14:20
Show Gist options
  • Save jfoshee/483a0b2e40ce18b1fabb to your computer and use it in GitHub Desktop.
Save jfoshee/483a0b2e40ce18b1fabb to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<!-- copy to ~/Library/XamarinStudio-5.0/Snippets/ as vmpc.template.xml -->
<CodeTemplates version="3.0">
<CodeTemplate version="2.0">
<Header>
<_Group>C#</_Group>
<Version />
<MimeType>text/x-csharp</MimeType>
<Shortcut>vmpc</Shortcut>
<_Description>property changed</_Description>
<TemplateType>Expansion</TemplateType>
</Header>
<Variables>
<Variable name="type">
<Default>string</Default>
</Variable>
<Variable name="name">
<Default>Message</Default>
</Variable>
</Variables>
<Code><![CDATA[private $type$ _$name$;
public $type$ $name$
{
get { return _$name$; }
set { SetProperty(ref _$name$, value); }
}]]></Code>
</CodeTemplate>
</CodeTemplates>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment