ParseOptionsForceReflection 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.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public bool ForceReflection { get; set; }

Property Value

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

Remarks

This property only applies when you manually construct an instance of the CommandLineParser or CommandLineParserT class, or use one of the static CommandLineParserParseT(ParseOptions) methods. If you use the generated static IParserTSelf or IParserProviderTSelf interface methods on the command line arguments type, the generated parser is used regardless of the value of this property.

See Also