Beispiel #1
0
        /// <summary>
        /// Constructs and instance of T, then runs it. This convenience method creates an instance of CommandArguments, then
        /// call ConstructAndRun on that result.
        /// </summary>
        /// <typeparam name="T">A //[Parsable] type that implements IExecutable.</typeparam>
        /// <param name="commandArgs">Command line arguments.</param>
        public static void ConstructAndRun <T>(string[] commandArgs) where T : IRunnable
        {
            CommandArguments command = new CommandArguments(commandArgs);

            command.ConstructAndRun <T>();
        }