propNotify6


Snippet Details

Shortcut
propNotify6
Description
Code snippet for property with INotifyPropertyChanged.PropertyChanged notify and backing field. Uses the nameof() c# syntax.
Language
csharp
Types
Expansion
Author
Reflection IT
Upload on
26-3-2015 08:58:05
Downloads
2105

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(nameof($property$));
			}
		}
	}
	$end$
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages