Exemplo n.º 1
0
        private static IConsoleCommand InstantiateCommandType(Type _type, String _parameterStr)
        {
            ConstructorInfo constructorInfo = _type.GetConstructor(new Type[0] {
            });
            IConsoleCommand consoleCommand  = constructorInfo.Invoke(new Object[0] {
            })
                                              as IConsoleCommand;

            consoleCommand.ParseStringParameter(_parameterStr);
            return(consoleCommand);
        }