title: Automatically INotifyPropertyChanged
body: <p>Is there any way to automatically get notified of property changes in a class without having to write OnPropertyChanged in every setter?  (I have hundreds of properties that I want to know if they have changed).</p>
  
  <hr>
  
  <p>Anton suggests <a href="http://www.nablasoft.com/alkampfer/index.php/2008/08/04/implement-inotifypropertychanged-with-castledynamicproxy/" rel="noreferrer">dynamic proxies</a>.  I've actually used the "Castle" library for something similar in the past, and while it does reduce the amount of code I've had to write, it added around 30 seconds to my program startup time (ymmv) - because it's a runtime solution.</p>
  
  <p>I'm wondering if there is a compile time solution, maybe using compile-time attributes...</p>
  
  <hr>
  
  <p>Slashene and TcKs give suggestions which generates repetitive code - unfortunately, not all my properties are a simple case of m_Value = value - lots of them have custom code in the setters, so cookie-cutter code from snippets and xml aren't really feasible for my project either.</p>