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