Esempio n. 1
0
        public virtual void ToDone()
        {
            if (_doneState == CommandDoneState.Done)
                throw new NotSupportedException("command already done");

            _doneState = CommandDoneState.Done;
        }
Esempio n. 2
0
        public virtual void ToDone()
        {
            if (_doneState == CommandDoneState.Done)
            {
                throw new NotSupportedException("command already done");
            }

            _doneState = CommandDoneState.Done;
        }