title: How to easily merge two anonymous objects with different data structure?
body: <p>I would like to merge these two anonymous objects:</p>
  <pre><code>var man1 = new {
      name = new {
          first = &quot;viet&quot;
      },
      age = 20
  };
  
  var man2 = new {
      name = new {
          last = &quot;vo&quot;
      },
      address = &quot;123 street&quot;
  };
  </code></pre>
  <p>Into a single one:</p>
  <pre><code>var man = new {
      name = new {
          first = &quot;viet&quot;,
          last = &quot;vo&quot;
      },
      age = 20,
      address = &quot;123 street&quot;
  };
  </code></pre>
  <p>I looked for a solution but found nothing clever.</p>