title: How to make AutoMapper create an instance of class
body: <p>I have the following source type:</p>
  
  <pre><code>public class Source
  {
      public string FirstName { get; set; }
      public string LastName { get; set; }
      public string Address1 { get; set; }
      public string Address2 { get; set; }
      public string City { get; set; }
      public string State { get; set; }
      public string ZipCode { get; set; }
  }
  </code></pre>
  
  <p>I have the following destination types:</p>
  
  <pre><code>public class Destination
  {
      public string FirstName { get; set; }
      public string LastName { get; set; }
  
      public Address HomeAddress { get; set; }
  }
  
  public class Address
  {
      public string Address1 { get; set; }
      public string Address2 { get; set; }
      public string City { get; set; }
      public string State { get; set; }
      public string PostalCode { get; set; }
  }
  </code></pre>
  
  <p>I created a mapping:</p>
  
  <pre><code>Mapper.CreateMap&lt;Source, Destination&gt;();
  </code></pre>
  
  <p>How do I configure my mapping so it will create an instance of Address and map the Address.PostalCode property using the Source property ZipCode?</p>