title: Merging two objects in C#
body: <p>I have an object model <code>MyObject</code> with various properties. At one point, I have two instances of these <code>MyObject</code>: instance A and instance B. I'd like to copy and replace the properties in instance A with those of instance B if instance B has non-null values.</p>
  <p>If I only had 1 class with 3 properties, no problem, I could easily hard code it (which is what I started doing). But I actually have 12 different object models with about 10 properties each.</p>
  <p>What's good way to do this?</p>