示例#1
0
        /// <summary>
        /// Constructs and instance of CommandArguments from a parsable object. This is the inverse of Construct().
        /// </summary>
        /// <param name="obj">The object from which to construct the ConstructorArguments</param>
        /// <param name="suppressDefaults">Specifies whether values that are equal to the defaults should be included in the resulting ArgumentCollection</param>
        /// <returns>The result</returns>
        public static CommandArguments FromParsable(object obj, bool suppressDefaults)
        {
            CommandArguments cmd = new CommandArguments();

            cmd.PopulateFromParsableObject(obj, suppressDefaults);
            return(cmd);
        }