Пример #1
0
 public virtual void ChangeState(AbstractState newState)
 {
     Helper.GuardNotNull(newState);
     _state = newState;
     OnStateChanged();
 }
Пример #2
0
 public virtual void ChangeState(AbstractState newState)
 {
     Helper.GuardNotNull(newState);
     _state = newState;
     OnStateChanged();
 }