title: Shortcut to create automatic properties using Visual Studio 2008/2010 or Resharper 5
body: <p>I have a class that contains a load of properties that contain results of some calculations e.g:</p>
  
  <pre><code>public class Results
  {
      public double Result1 { get; set; }
      public double Result2 { get; set; }
  }
  </code></pre>
  
  <p>In a different class I am doing calculations to populate the above properties, e.g:</p>
  
  <pre><code>public class Calc
  {
      private Results Calc()
      {
          Results res = new Results();
          res.Result1 = ... some calculation
          res.Result2 = ... some other calculation
  
          res.Result3 = ... // not yet defined in 'Results' class
          return res;
      }
  }
  </code></pre>
  
  <p>When I am writing the <code>Calc</code> class, <code>Result3</code> will be highlighted in red as it is not yet defined in the <code>Results</code> class.</p>
  
  <p>Currently I am using the Resharper <kbd>ALT</kbd> + <kbd>Enter</kbd> shortcut, selecting "Create Property 'Result3'" which will create the following code int the <code>Results</code> class:</p>
  
  <pre><code>public double Result3
  {
      get { throw new NotImplementedException(); }
      set { throw new NotImplementedException(); }
  }
  </code></pre>
  
  <p>Which I need to manually change to:</p>
  
  <pre><code>public double Result3 { get; set; }
  </code></pre>
  
  <p>Then I use the <kbd>CTRL</kbd> + <kbd>Shift</kbd> + <kbd>Backspace</kbd> shortcut to take me back to the <code>Calc</code> class.</p>
  
  <p>How can I easily create automatic properties in the <code>Results</code> class if they are not yet defined directly from the <code>Calc</code> class?</p>