Created
May 9, 2012 05:15
-
-
Save shawnoster/2642031 to your computer and use it in GitHub Desktop.
Sublime snippet that inserts a property that raises PropertyChanged
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
<snippet> | |
<tabTrigger>propc</tabTrigger> | |
<content><![CDATA[ | |
private ${1:string} _${2}; | |
public ${1} ${2/./\u$0/} | |
{ | |
get | |
{ | |
return _${2}; | |
} | |
set | |
{ | |
if (_${2} != value) | |
{ | |
_${2} = value; | |
OnPropertyChanged("${2/./\u$0/}"); | |
} | |
} | |
} | |
]]></content> | |
<scope>source.cs</scope> | |
<description>Property that raises PropertyChanged</description> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment