LiftStringExpressionToEmpty() static private method

Provided expression should have string type
static private LiftStringExpressionToEmpty ( Expression stringExpression ) : Expression
stringExpression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression
        private static Expression GenerateToLowerCall(Expression stringExpression, bool liftMemberAccess)
        {
            if (liftMemberAccess)
            {
                stringExpression = ExpressionFactory.LiftStringExpressionToEmpty(stringExpression);
            }

            return(Expression.Call(stringExpression, StringToLowerMethodInfo));
        }
Exemplo n.º 2
0
        private static Expression GenerateToLowerCall(Expression stringExpression)
        {
            var liftedToEmpty = ExpressionFactory.LiftStringExpressionToEmpty(stringExpression);

            return(Expression.Call(liftedToEmpty, StringToLowerMethodInfo));
        }