Пример #1
0
 private void RegisterArguments()
 {
     ProcessTArgsTemplate.Process <TArguments>(
         _commandRegisterer.RegisterFlag,
         _commandRegisterer.RegisterOption,
         _commandRegisterer.RegisterParameter,
         _commandRegisterer.RegisterParameterSeries
         );
 }
Пример #2
0
        private static TArguments Build(CommandArgs args)
        {
            var tArgs     = (TArguments)Activator.CreateInstance(typeof(TArguments));
            var argSetter = new GenericArgsBuilder <TArguments>(args, tArgs);

            ProcessTArgsTemplate.Process <TArguments>(
                argSetter.SetFlagValue,
                argSetter.SetOptionValue,
                argSetter.SetParameterValue,
                argSetter.SetParameterSeriesValues
                );

            return(tArgs);
        }