title: call Equal method of Expression
body: <p>when I run this code </p>
  
  <pre><code>Expression left = Expression.Constant(10, typeof(int));
  Expression right = Expression.Constant(10,typeof(int));
  
  var method10 = typeof(Expression).GetMethod("Equal", new[] { typeof(Expression), typeof(Expression) });
  Expression exp = Expression.Call(method10,left,right);
  var lambda = Expression.Lambda&lt;Func&lt;bool&gt;&gt;(exp);
  var compiled = lambda.Compile().DynamicInvoke();
  </code></pre>
  
  <p>I get the below error </p>
  
  <p>Additional information: Expression of type <code>'System.Int32'</code> cannot be used for parameter of type <code>'System.Linq.Expressions.Expression'</code> of method <code>'System.Linq.Expressions.BinaryExpression Equal(System.Linq.Expressions.Expression, System.Linq.Expressions.Expression)'</code></p>