title: How to create an Expression AND clause from two expressions
body: <p>I am trying to create a where clause for my view using LINQ.</p>
  
  <p>I was able to create single column where clause and I would like now to create multiple column where clauses..</p>
  
  <p>I have seen  code to implement in .Net 4 and above, but since I have to use .Net 3.5, I need a quick work around for this. so what I am trying to do is....</p>
  
  <pre><code> Expression leftexp = {tag=&gt;((tag.id=2)||(tag.id=3))}
   Expression rightexp = {tag=&gt;((tag.uid="MU")||(tag.uid="ST"))}
  </code></pre>
  
  <p>from these two expressions i would like to create</p>
  
  <pre><code> BinaryExpression be = {tag=&gt;((tag.id=2)||(tag.id=3))} &amp;&amp; 
                         {tag=&gt;((tag.uid="MU")||(tag.uid="ST"))} 
  </code></pre>
  
  <p>something like this which i could pass to my where clause in LINQ.</p>
  
  <p>I tried to use <strong>Expression.And(leftexp,rightexp)</strong></p>
  
  <p>but got the error..</p>
  
  <blockquote>
    <p>The binary operator And is not defined for the types<br>
    'System.Func<code>2[WebApplication1.View_MyView,System.Boolean]' and 
    'System.Func</code>2[WebApplication1.View_MyView,System.Boolean]'.</p>
  </blockquote>
  
  <p>Expression is  new for me and might have looked at too much of code so a bit confused to how to go about doing this... would really appreciate if you could point me in the right direction.</p>