Created
March 7, 2017 04:32
-
-
Save tuyen-vuduc/071fcfb6326fe518c994dd7a74aa7ac5 to your computer and use it in GitHub Desktop.
MVVM C# Shortcut
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
ObservableCollection<$Type$> _$Name$; | |
public ObservableCollection<$Type$> $Name$ | |
{ | |
get { return _$Name$; } | |
set | |
{ | |
if (ReferenceEquals(_$Name$, value)) return; | |
_$Name$ = value; | |
OnPropertyChanged(); | |
} | |
} |
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
$Type$ _$Name$; | |
public $Type$ $Name$ | |
{ | |
get { return _$Name$; } | |
set | |
{ | |
if (Equals(_$Name$, value)) return; | |
_$Name$ = value; | |
OnPropertyChanged(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment