ParseOptions.ForceReflection Property

Gets or sets a value that indicates whether the CommandLineParser class will use reflection even if the command line arguments type has the GeneratedParserAttribute.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.1.0+9df03b6173b5fc9d44dc39638758964dd7a0f4c7
C#
public bool ForceReflection { get; set; }

Property Value

Boolean
true to force the use of reflection when the arguments class has the GeneratedParserAttribute attribute; otherwise, false. The default value is false.

Remarks

This property only applies when you manually construct an instance of the CommandLineParser or CommandLineParser<T> class, or use one of the static CommandLineParser.Parse<T>(ParseOptions) methods. If you use the generated static IParser<TSelf> or IParserProvider<TSelf> interface methods on the command line arguments type, the generated parser is used regardless of the value of this property.

See Also