Esempio n. 1
0
        /// <summary>
        /// Validates the instance and its list of arguments to be processed.
        /// </summary>
        /// <remarks>
        /// This method validates the instance as well as its list of arguments to be
        /// processed by just calling method <see cref="Initialize"/> which in turn does
        /// the validation.
        /// </remarks>
        /// <param name="instance">
        /// The instance of the class to be processed.
        /// </param>
        /// <param name="arguments">
        /// The list of arguments to be processed.
        /// </param>
        /// <exception cref="ArgumentParserException">
        /// Any of an argument parser exception if necessary.
        /// </exception>
        public static void Process(TInstance instance, List <String> arguments)
        {
            ArgumentProcessor <TInstance> processor = new ArgumentProcessor <TInstance>(instance, arguments);

            processor.Process();
        }
Esempio n. 2
0
        /// <summary>
        /// Validates the instance to be processed.
        /// </summary>
        /// <remarks>
        /// This method validates the instance to be processed by just calling method
        /// <see cref="Initialize"/> which in turn does the validation.
        /// </remarks>
        /// <param name="instance">
        /// The instance of the class to be processed.
        /// </param>
        /// <exception cref="ArgumentParserException">
        /// Any of an argument parser exception if necessary.
        /// </exception>
        public static void Validate(TInstance instance)
        {
            ArgumentProcessor <TInstance> processor = new ArgumentProcessor <TInstance>(instance);

            processor.Initialize();
        }