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
3/26/2015 8:58:05 AM
Downloads
597

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