title: .NET FluentValidation: Parent rule depending on child value
body: <p>I tried in this way but this doesn´t work properly:</p>
  <pre><code>RuleForEach(p =&gt; p.Childs).NotEmpty().ChildRules(child =&gt;
          {
              child.RuleFor(p =&gt; p.Name).NotEmpty();
              When(p =&gt; p.Child2.Name == &quot;cool&quot;, () =&gt;
              {
                  child.When(c =&gt; c.Code &lt; 56, () =&gt;
                  {
                      RuleFor(p =&gt; p.Surname).NotEmpty();
                      When(p =&gt; p.Date.HasValue, () =&gt;
                      {
                          RuleFor(p =&gt; p.Total).InclusiveBetween(4, 6);
                      });
                  });
              });
          });
  </code></pre>
  <p>Could anyone helps me? Thx</p>