title: Member by Member copy
body: <p>In an application we have we have a set of ORM objects, and a set of business object. Most of the time we're simply doing a member by member copy. Other times we process the data slightly. For instance:</p>
  
  <pre><code>tEmployee emp = new tEmployee();
  emp.Name = obj.Name;
  emp.LastName = obj.LastName;
  emp.Age = obj.Age;
  emp.LastEdited = obj.LastEdited.ToGMT();
  </code></pre>
  
  <p>Now this works just fine, and is rather fast, but not exactly terse when it comes to coding. Some of our objects have upto 40 members, so doing a copy like this can get rather tedious. Granted you only need 2 methods for two->from conversion, but I'd like to find a better way to do this.</p>
  
  <p>Reflection is an natural choice, but on a benchmark I found that execution time was about 100x slower when using reflection. </p>
  
  <p>Is there a better way to go about this?</p>
  
  <p>Clarification:
  I'm converting from one type to another. In the above example obj is of type BLogicEmployee and emp is of type tEmployee. They share member names, but that is it. </p>