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
1-7-2017 15:28:49
Downloads
3438

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