예제 #1
0
        public static ExpressionNode ParseNoCache(
            string expression,
            bool caseSensitiveLike)
        {
            string text = (expression ?? "").Trim();

            if (text.StartsWith("="))
            {
                text = text.Substring(1);
            }
            if (!(string.Empty != text))
            {
                return((ExpressionNode)null);
            }
            using (ExpressionParser expressionParser = new ExpressionParser(text, caseSensitiveLike))
                return(expressionParser.Parse());
        }
예제 #2
0
 public static ExpressionNode Parse(string expression, bool caseSensitive)
 {
     return(ExpressionParser.Parse(expression, caseSensitive));
 }