title: Automapper Map Members in the nested class
body: <p>Im get stuck with AutoMapper syntax.</p>
  
  <p>How to skip mapping members in the nested class (by condition string is empty)? 
  Im tried following code:</p>
  
  <pre><code>[TestMethod]
  public void TestMethod4()
  {
      var a = new A { Nested = new NestedA { V = 1, S = "A" } };
      var b = new B { Nested = new NestedB { V = 2, S = string.Empty } };
  
      Mapper.CreateMap&lt;B, A&gt;();   
      Mapper.CreateMap&lt;NestedB, NestedA&gt;().ForMember(s =&gt; s.S, opt =&gt; opt.Condition(src =&gt; !string.IsNullOrWhiteSpace(src.S)));
      var result = Mapper.Map(b, a);
  
        Assert.AreEqual(2, result.Nested.V);       // OK
        Assert.AreEqual("A", result.Nested.S);     // FAIL: S == null
  }
  </code></pre>
  
  <p>Thanks</p>