-
-
Save jfoshee/483a0b2e40ce18b1fabb to your computer and use it in GitHub Desktop.
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"?> | |
<!-- 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