private bool ExpressionConstantIsValid(Expression <Func <T, bool> > expr)
        {
            var constantValidtor = new ExpressionConstantValidator(ConstantValidFunc);

            return(constantValidtor.Validate(expr));
        }
示例#2
0
        private static bool ExpressionConstantIsValid <T>(Expression <Func <T, bool> > expr)
        {
            var constantValidtor = new ExpressionConstantValidator(ConstantNotNull);

            return(constantValidtor.Validate(expr));
        }