title: Fluent Validation - pass parameter to collection validator
body: <p>I'm using fluent validation i ASP.NET MVC application and I've had a problem.
  This is my rule:</p>
  
  <pre><code>RuleFor(x =&gt; x.SimpleList)
         .SetCollectionValidator(new SimpleListValidator())
         .When(x =&gt; x.Type == SimpleEnum.SpecificType);
  </code></pre>
  
  <p>I want to pass x.Type param to SimpleListValidator, how can I do this? Some kind of extension method? It should looks like:</p>
  
  <pre><code>    RuleFor(x =&gt; x.SimpleList)
         .SetCollectionValidator(new SimpleListValidator(x =&gt; x.Type))
         .When(x =&gt; x.Type == SimpleEnum.SpecificType);
  </code></pre>