public void Run() { string input; while ((input = Console.ReadLine()) != "END") { try { var data = input .Split(";", StringSplitOptions.RemoveEmptyEntries) .ToArray(); ICommand command = commandInterpreter.CreateCommand(data); command.ExecuteCommand(); } catch (Exception e) { continue; } } }