Beispiel #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));
        }
Beispiel #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);
        }
Beispiel #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;
		}