title: Configuring AutoMapper without Generics
body: <p>I am trying to configure AutoMapper without using generics as I want to configure it at runtime.</p>
  
  <p>I want to configure the SubstiteNulls method and be able to do the equivalent of:</p>
  
  <pre><code>Mapper.CreateMap&lt;Source, Dest&gt;()
      .ForMember(dest =&gt; dest.Value, opt =&gt; opt.NullSubstitute("Other Value"));
  </code></pre>
  
  <p>But I can't figure out how to do this.  You can pass they Type objects into the <code>CreateMap</code> factory method but when you use the <code>ForMember</code> method, the <code>opt</code> object does not contain the <code>NullSubstitute</code> method and I imagine this is due to the lack of generic that I am using here.</p>
  
  <p>Any ideas on how I can achieve this?</p>
  
  <h2>Update</h2>
  
  <p>These are the options that I am getting:</p>
  
  <p><img src="https://i.stack.imgur.com/VlcHP.png" alt="enter image description here"></p>