コード例 #1
0
 public override void Enter(IState from, char c)
 {
     base.Enter(from, c);
     if (from.IsFinalState)
     {
         Expression = from.CreateExpression();
     }
 }
コード例 #2
0
 public override void Enter(IState from, char c)
 {
     if (from != this)
     {
         try
         {
             _expression = from.CreateExpression() as FunctionExpression;
         }
         catch (NotImplementedException)
         {
             throw new InvalidOperationException();
         }
     }
     base.Enter(from, c);
 }