コード例 #1
0
        /// <summary>
        /// Calculates the overall result of running the rule on a single CO.
        /// </summary>
        /// <remarks>The values of each Check() result are OR'ed to create the overall result.
        /// That is, if any Check() call returned True, then the result for the whole rule is set to True.
        /// </remarks>
        /// <returns></returns>
        public bool SetTrueOrFalse()
        {
            RuleResult val = new RuleResult()
            {
                Result = false, OP = OPERAND.OR
            };                                                                    //OR is default, so we have to start with false

            //Parse the output
            OutputItems.ForEach(oi => val.ParseNext(oi));
            CleanUpOperands();
            Result = val;
            return(val);
        }