when I run this code
Expression left = Expression.Constant(10, typeof(int)); Expression right = Expression.Constant(10,typeof(int)); var method10 = typeof(Expr
Try
var exp = Expression.MakeBinary(ExpressionType.Equal, left, right);
instead of
var method10 = typeof(Expression).GetMethod("Equal", new[] { typeof(Expression), typeof(Expression) }); Expression exp = Expression.Call(method10,left,right);