title: WCF Service Reference and iNotifyPropertyChanged
body: <p>I have a boolean property called IsUpdated in my base class which I want to set to TRUE when any property in my objects gets changed in the client.</p>
  
  <p>My base class is something like this:</p>
  
  <pre><code>[DataContract]
  public abstract class EntityBase : INotifyPropertyChanged, IAuditable
  {
      #region Data Members
      [DataMember]
      public int Key
      {
          get;
          set;
      }
  
      [DataMember]
      public bool IsUpdated
      {
          get;
          set;
      }
  
      public event PropertyChangedEventHandler PropertyChanged;
      protected virtual void OnPropertyChanged(string propertyName)
      {
          PropertyChangedEventHandler handler = PropertyChanged;
          if (handler != null) handler(this, new PropertyChangedEventArgs(propertyName));
      }
  
      protected bool SetField&lt;T&gt;(ref T field, T value, string propertyName)
      {
          if (EqualityComparer&lt;T&gt;.Default.Equals(field, value)) return false;
          field = value;
          IsUpdated = true;
          OnPropertyChanged(propertyName);
          return true;
      }
  }
  </code></pre>
  
  <p>All my classes derive from this class.  If this were not in WCF service, it'll be just fine.  But of course, after I add a service reference to my WCF service, my PropertyChanged event handler and the SetField method do not get copied to the client.</p>
  
  <p>Visual Studio automatically implements INotifyPropertyChanged for my WCF Service DataContracts, but what do I do so that IsUpdated is set to TRUE whenever a property in a derived class gets modified?</p>