//IsCellDataValid Method returns bool
MethodInfo isCellDataValidMethod = this.GetType().GetMethod("IsCellDataValid", BindingFlags.NonPublic | BindingFlags.Instance);
var IsCellDataValidMethodCall = Expression.Call(ruleEngineInstance, isCellDataValidMethod, new ParameterExpression[] { method params});
var cellDataValidConstantExp = ConstantExpression.IsTrue(IsCellDataValidMethodCall);
//GetCellTypeCount returns Int
var isCellDataValidExpression = Expression.IfThen(cellDataValidConstant,
GetCellTypeCountMethodCall);
Now I want to compare the output of this cellTypeCountExpression
to a user entered value and don't want the expression to be compiled to get the result and then build a Constant Expression
I have something like
var resultBinaryExp = ParameterExpression.LessThan(GetCellTypeCountMethodCall,
Expression.Constant(userEnteredValu), typeof(int));