コード例 #1
0
        public bool Inspect <T>(ExpressionAction <T> action)
            where T : StateMachine <T>
        {
            string result = new StateMachineExpressionInspector().Inspect(action.Expression);

            Append(result);
            return(true);
        }
コード例 #2
0
        public bool Inspect <T, TData>(DataEventAction <T, TData> eventAction)
            where T : StateMachine <T>
            where TData : class
        {
            if (eventAction.Condition != null)
            {
                StateMachineExpressionInspector expressionInspector = new StateMachineExpressionInspector();

                string result = expressionInspector.Inspect(eventAction.Condition);

                Append(string.Format("If {0}", result));
            }

            AppendEventAction(eventAction);

            return(true);
        }