Beispiel #1
0
        /// <summary>
        /// Simple wrapper that constructs an instance of type T from the command line string.
        /// See ArgumentCollection.Construct() for documentation.
        /// </summary>
        /// <typeparam name="T">The Parsable type to be constructed</typeparam>
        /// <param name="commandString">The string from which to construct</param>
        /// <returns>The fully instantiated object</returns>
        public static T Construct <T>(string commandString)
        {
            CommandArguments command = new CommandArguments(commandString);

            return(command.Construct <T>());
        }