Esempio n. 1
0
        internal CompiledExpression CompileExpression(string expression, bool isKey)
        {
            if (expression == null || expression == string.Empty)
            {
                return(null);
            }
            Expression expr = this.xpathParser.Compile(expression);

            if (isKey)
            {
                expr = new ExprKeyContainer(expr);
            }
            return(new CompiledExpression(expression, expr));
        }
Esempio n. 2
0
        internal CompiledExpression CompileExpression(string expression, bool isKey)
        {
            if (expression == null || expression == "")
            {
                return(null);
            }

            Expression expr = xpathParser.Compile(expression);

            if (isKey)
            {
                expr = new ExprKeyContainer(expr);
            }
            CompiledExpression e = new CompiledExpression(expression, expr);

            return(e);
        }
Esempio n. 3
0
		internal CompiledExpression CompileExpression (string expression, bool isKey)
		{
			if (expression == null || expression == "") return null;

			Expression expr = xpathParser.Compile (expression);
			if (isKey)
				expr = new ExprKeyContainer (expr);
			CompiledExpression e = new CompiledExpression (expression, expr);

			return e;
		}