public string Read(string[] args) { string command = args[0]; string[] inputData = args.Skip(1).ToArray(); var method = manageController.GetType().GetMethod(command); string result = (string)method.Invoke(manageController, inputData); return(result); }