/// <summary> /// Initializes a new instance of the <see cref="Option" /> class with the specified identifying names and /// specifies whether the names are case sensitive. /// </summary> /// <param name="caseSensitive">Indicates whether the specified <paramref name="names" /> are case sensitive.</param> /// <param name="names">One or more unique names to identify the option.</param> public Option(bool caseSensitive, params string[] names) { foreach (string name in names) { AddName(name, caseSensitive); } Validators = new OptionParameterValidators(this); }
/// <summary> /// Initializes a new instance of the <see cref="Option" /> class with the specified identifying names. /// </summary> /// <param name="names"> /// One or more unique names to identify the option. All names added will be not be case-sensitive. In case /// you require case-sensitive option names, use the overloaded constructor. /// </param> public Option(params string[] names) { foreach (string name in names) { AddName(name); } Validators = new OptionParameterValidators(this); }