示例#1
0
            public Validator(PropertyInfo[] properties, IEnumerable <string> args, object instance, ArgumentParserSettings settings)
            {
                _args       = args;
                _instance   = instance;
                _settings   = settings;
                _properties = properties;

                PopulateInstance();
                SetDefaultValues();
                GetRequiredList();
            }
示例#2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ArgumentParser" /> class,
 ///     configurable with <see cref="ArgumentParserSettings" /> using a delegate.
 /// </summary>
 /// <param name="parseSettings">The parse settings.</param>
 public ArgumentParser(ArgumentParserSettings parseSettings)
 {
     Settings = parseSettings ?? throw new ArgumentNullException(nameof(parseSettings));
 }