There is a DisplayNameFor(x=>x.Title) helper in ASP.Net MVC.
I want to implement something similar in behavior.
I want to have a method that accepts
The below method will produce a binary expression that will have a boolean return value
Expression>
GenerateAssignExpression(
Expression> expression,
ExpressionType op,
TProperty Value)
{
return Expression.Lambda>(
Expression.MakeBinary(op, expression, Expression.Constant(Value)),
getExpression.Parameters[0]);
}
if you wish for a generic return type just change the Predicate to Func (You need to replace both occurrences of `Predicate´