title: A better way to write MVVM boilerplate code?
body: <p>I have found myself recently writing a lot of boilerplate MVVM code and wonder if there is a fancy way to get around writing it all?  I already use a <code>ViewModelBase</code> class that implements <code>INotifyPropertyChanged</code> but that doesnt solve the problem of having to write all the accessor code etc.  Perhaps by writing a custom attribute that does this, or via a templating system?</p>
  
  <pre><code>public MyClass : ViewModelBase
  {
      private int someVariable;
  
      public int SomeVariable
      {
          get
          {
              return this.someVariable;
          }
  
          set
          {
              this.someVariable = value;
              this.NotifyPropertyChanged("SomeVariable");
          }
      }
  }
  </code></pre>