Exemplo n.º 1
0
        internal override bool Evaluate(string filename)
        {
            bool flag = Left.Evaluate(filename);

            switch (Conjunction)
            {
            case LogicalConjunction.AND:
                if (flag)
                {
                    flag = Right.Evaluate(filename);
                }
                break;

            case LogicalConjunction.OR:
                if (!flag)
                {
                    flag = Right.Evaluate(filename);
                }
                break;

            case LogicalConjunction.XOR:
                flag ^= Right.Evaluate(filename);
                break;

            default:
                throw new ArgumentException("Conjunction");
            }
            return(flag);
        }
Exemplo n.º 2
0
        internal override bool Evaluate(string filename)
        {
            bool result = Left.Evaluate(filename);

            switch (Conjunction)
            {
            case LogicalConjunction.AND:
                if (result)
                {
                    result = Right.Evaluate(filename);
                }
                break;

            case LogicalConjunction.OR:
                if (!result)
                {
                    result = Right.Evaluate(filename);
                }
                break;

            case LogicalConjunction.XOR:
                result ^= Right.Evaluate(filename);
                break;

            default:
                throw new ArgumentException("Conjunction");
            }
            return(result);
        }
        private bool Evaluate(string filename)
        {
            // dinoch - Thu, 11 Feb 2010  18:34
            SelectorTrace("Evaluate({0})", filename);
            bool result = _Criterion.Evaluate(filename);

            return(result);
        }
Exemplo n.º 4
0
        private bool Evaluate(string filename)
        {
            bool result = _Criterion.Evaluate(filename);

            return(result);
        }
Exemplo n.º 5
0
 private bool Evaluate(string filename)
 {
     return(_Criterion.Evaluate(filename));
 }