title: Can ReSharper generate code that copies properties from one object to another?
body: <p>I'm looking for a way to accelerate a repeatable task when  I write code. I have ReSharper and I'm thinking a customization could do what I need.</p>
  
  <p>I have two objects of the same type. I want to copy all of the public properties of one object to the other object. I want the tool, ReSharper in this case, to do generate the code for me. I'll tell it the names of the first object and the second object. I want it to find all the public properties of the first object and copy the values to the second object.</p>
  
  <p>Here's the type of code I'm looking to have generated with a tool like ReSharper:</p>
  
  <pre><code>foo.Name = moo.Name;
  foo.Age = moo.Age;
  foo.City = moo.City;
  </code></pre>
  
  <p>Automating this simple code that copies values from right to left would save a ton of time and I'm thinking that ReSharper can do it. However, I haven't seen anything pop-up in searches for it though.</p>
  
  <p>I'm not looking for a CodeSmith code generation technique or T4 template because I only want it to generate these specific lines inside my class, not generate and entire class or a separate file.</p>
  
  <p>Does anyone know a way to press a few keystrokes, enter the "foo" and "moo" object names above and have the tool generate these copy from right to left lines of code?</p>
  
  <p><strong>Update:</strong> </p>
  
  <p>I've found some documentation on building extensions to ReSharper, and this can probably be achieved by that path, but it looks really involved.</p>
  
  <p><a href="http://www.jetbrains.net/confluence/display/ReSharper/PowerToys+Pack+3.0+User+Guide" rel="noreferrer">http://www.jetbrains.net/confluence/display/ReSharper/PowerToys+Pack+3.0+User+Guide</a></p>
  
  <p>This is beginning to look like a weekend challenge unless someone else has already written it.</p>