Пример #1
0
        public string Read(string args)
        {
            string[] commandInput = args.Split();
            string   commandType  = commandInput[0];

            string[] commandArgs = commandInput.Skip(1).ToArray();
            ICommand command     = commandFactory.Command(commandType);

            return(command == null ? null : command.Execute(commandArgs));
        }