Exemple #1
0
 public override IState Next(IUnaryOperation operation)
 {
     stateParams.LeftOperand = operation.Perform(stateParams.LeftOperand);
     return(this);
 }
 public override IState Next(IUnaryOperation operation)
 {
     PerformPendingOperation();
     stateParams.LeftOperand = operation.Perform(stateParams.LeftOperand);
     return(stateFactory.GetShowResultState(stateParams));
 }