<?xml version="1.0" encoding="utf-8"?>
<CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <Header>
    <Title>Notifiable Property with datacontract</Title>
    <Author>mv1986</Author>
    <Shortcut>dnprop</Shortcut>
    <Description>Property with notify change (C# 5.0) plus datacontract attribute.</Description>
    <SnippetTypes>
      <SnippetType>SurroundsWith</SnippetType>
      <SnippetType>Expansion</SnippetType>
    </SnippetTypes>
  </Header>
  <Snippet>
    <Declarations>
      <Literal>
        <ID>Type</ID>
        <Default>string</Default>
      </Literal>
      <Literal>
        <ID>Property</ID>
        <Default>Prop</Default>
      </Literal>
    </Declarations>
    <Code Language="CSharp">
      <![CDATA[private $Type$ _$Property$;
        [DataMember]
		public $Type$ $Property$
        {
            get { return _$Property$; }
            set { 
               _$Property$ = value;
               NotifyPropertyChanged();
            }
        }]]>
    </Code>
  </Snippet>
</CodeSnippet>