CommandLineArgumentDefaultValue Property

Gets the default value for an argument.

Definition

Namespace: Ookii.CommandLine
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public Object? DefaultValue { get; }

Property Value

Object
The default value of the argument.

Remarks

The default value is set by the CommandLineArgumentAttributeDefaultValue property, or when the GeneratedParserAttribute is used it can also be specified using a property initializer.

This value is only used if the IsRequired property is .

See Also