Guest User

inotif

a guest
May 8th, 2012
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.91 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <CodeSnippet Format="1.0.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.   <Header>
  4.     <Title>inotif</Title>
  5.     <Author>Solal Pirelli</Author>
  6.     <Shortcut>inotif</Shortcut>
  7.     <Description>Implements INotifyPropertyChanged, as well as a FirePropertyChanged method</Description>
  8.     <SnippetTypes>
  9.       <SnippetType>Expansion</SnippetType>
  10.     </SnippetTypes>
  11.   </Header>
  12.   <Snippet>
  13.     <Code Language="CSharp">
  14.       <![CDATA[
  15.      #region INotifyPropertyChanged implementation
  16.      public event PropertyChangedEventHandler PropertyChanged;
  17.      private void FirePropertyChanged( string name )
  18.      {
  19.          if ( this.PropertyChanged != null )
  20.          {
  21.              this.PropertyChanged( this, new PropertyChangedEventArgs( name ) );
  22.          }
  23.      }
  24.      #endregion
  25.      ]]>
  26.     </Code>
  27.   </Snippet>
  28. </CodeSnippet>
Add Comment
Please, Sign In to add comment