Example #1
0
 public virtual void ChangeState(AbstractState newState)
 {
     Helper.GuardNotNull(newState);
     _state = newState;
     OnStateChanged();
 }
Example #2
0
 public virtual void ChangeState(AbstractState newState)
 {
     Helper.GuardNotNull(newState);
     _state = newState;
     OnStateChanged();
 }