Notifiable Property with datacontract


Snippet Details

Shortcut
dnprop
Description
Property with notify change (C# 5.0) plus datacontract attribute.
Language
CSharp
Types
SurroundsWith, Expansion
Author
mv1986
Upload on
7/1/2017 3:28:49 PM
Downloads
212

Declarations

ID ToolTip Default
Type string
Property Prop

Code Output

        private $Type$ _$Property$;
        [DataMember]
		public $Type$ $Property$
        {
            get { return _$Property$; }
            set { 
               _$Property$ = value;
               NotifyPropertyChanged();
            }
        }
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages