public Validator(PropertyInfo[] properties, IEnumerable <string> args, object instance, ArgumentParserSettings settings) { _args = args; _instance = instance; _settings = settings; _properties = properties; PopulateInstance(); SetDefaultValues(); GetRequiredList(); }
/// <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)); }