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
11/12/2013 6:52:27 PM
Downloads
885

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