title: automapper conditional Custom Value Resolver
body: <p>Is it possible to use a custom value resolver in automapper only if a certain condition is met?</p>
  
  <p>In my case I only want to update the value with the custom value resolver if the <strong>destination</strong> is not null.</p>
  
  <p>This is an example of my code. Basically I need to add the condition onto this. Is it possible?</p>
  
  <pre><code>Mapper.CreateMap&lt;ResponseXml, MyModel&gt;()
      .ForMember(dest =&gt; dest.FirstName, 
                   op =&gt; op.ResolveUsing&lt;ResponseXmlValueResolver&gt;()
                  .FromMember(x =&gt; x.data.FirstOrDefault(y =&gt; y.name == "name")))
  </code></pre>