예제 #1
0
        DbEval ParsingCheckCondOp(DbEval result)
        {
            string next = PeekPart();

            if (0 == string.Compare(next, "AND", true))
            {
                NextPart(); // Eat the AND.
                DbEval nexteval = ParseBase();
                result = new DbEvalAnd(this, result, nexteval);
            }
            else if (0 == string.Compare(next, "OR", true))
            {
                NextPart(); // Eat the OR.
                DbEval nexteval = ParseBase();
                result = new DbEvalOr(this, result, nexteval);
            }
            return(result);
        }
예제 #2
0
 DbEval ParsingCheckCondOp(DbEval result)
 {
     string next = PeekPart();
     if (0 == string.Compare(next, "AND", true))
     {
         NextPart(); // Eat the AND.
         DbEval nexteval = ParseBase();
         result = new DbEvalAnd(this, result, nexteval);
     }
     else if (0 == string.Compare(next, "OR", true))
     {
         NextPart(); // Eat the OR.
         DbEval nexteval = ParseBase();
         result = new DbEvalOr(this, result, nexteval);
     }
     return result;
 }