public void Execute(IUndoCommand command) { #region Sanity checks if (command == null) throw new ArgumentNullException(nameof(command)); #endregion command.Execute(); } }