propNotify


Snippet Details

Shortcut
propNotify
Description
Code snippet for property with INotifyPropertyChanged.PropertyChanged notify and backing field
Language
csharp
Types
Expansion
Author
Fons Sonnemans
Upload on
12-11-2013 18:52:27
Downloads
2868

Declarations

ID ToolTip Default
type Property type int
property Property name MyProperty
field The variable backing this property myVar

Code Output

        private $type$ $field$;

	public $type$ $property$
	{
		get { return $field$;}
		set { 
			if ($field$ != value) {
				$field$ = value;
				OnPropertyChanged("$property$");
			}
		}
	}
	$end$
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages