title: How do I dynamically create an Expression<Func<MyClass, bool>> predicate?
body: <p>How would I go about using an Expression Tree to dynamically create a predicate that looks something like...</p>
  
  <pre><code>(p.Length== 5) &amp;&amp; (p.SomeOtherProperty == "hello") 
  </code></pre>
  
  <p>So that I can stick the predicate into a lambda expression like so...</p>
  
  <pre><code>q.Where(myDynamicExpression)...
  </code></pre>
  
  <p>I just need to be pointed in the right direction.</p>
  
  <p><strong>Update:</strong> Sorry folks, I left out the fact that I want the predicate to have multiple conditions as above. Sorry for the confusion.</p>