Example #1
0
            internal void ParseNext(OutputItem oi)
            {
                switch (oi.ItemType)
                {
                case OPERAND.OR: OP = OPERAND.OR; break;

                case OPERAND.AND: OP = OPERAND.AND; break;

                default:     //Standard behavior
                    UpdateResult(oi.Result);
                    break;
                }
            }
Example #2
0
 /// <summary>
 /// Adds single entry of output to the result.
 /// </summary>
 /// <remarks>This method is called by the engine after every call to Rule.Check().</remarks>
 /// <param name="oi">Result of single Rule.Check() call.</param>
 public void AddItem(OutputItem oi)
 {
     OutputItems.Add(oi);
 }