コード例 #1
0
        public void ExecuteCommand(CommandBase command)
        {
            if (command.ShouldBackup)
            {
                SaveBackup();
            }

            Console.WriteLine($"-- Before command execution: {_file.GetText()}");
            command.Execute();
            Console.WriteLine($"-- After command execution: {_file.GetText()}");
            Console.WriteLine();
        }