コード例 #1
0
        /// <summary>
        ///     Evaluates the specified expression.
        /// </summary>
        /// <param name="expression"> The expression. </param>
        /// <returns> </returns>
        ILogical IExpressionEvaluator.Evaluate(Action <IStateTransitionExpression> expression)
        {
            StateTransitionExpression subExpression = new StateTransitionExpression( );

            expression(subExpression);

            _conditionChains.Add(new ExpressionContainer(ExpressionType.Evaluate, subExpression));

            return(this);
        }
コード例 #2
0
        /// <summary>
        ///     Customs the specified action.
        /// </summary>
        /// <param name="action"> The action. </param>
        /// <returns> </returns>
        ILogical ILogical.Custom(Action <IExpressionEvaluator> action)
        {
            StateTransitionExpression subExpression = new StateTransitionExpression( );

            action(subExpression);

            _conditionChains.Add(new ExpressionContainer(ExpressionType.Custom, subExpression));

            return(this);
        }