public bool GenerateParseMethods { get; set; }
Public Property GenerateParseMethods As Boolean
Get
Set
Dim instance As GeneratedParserAttribute
Dim value As Boolean
value = instance.GenerateParseMethods
instance.GenerateParseMethods = value
public:
property bool GenerateParseMethods {
bool get ();
void set (bool value);
}
When this property is true, the source generator will add static Parse methods to the arguments class which will create a parser and parse the command line arguments in one go. If using .Net 7.0 or later, this will implement the IParser<TSelf> interface on the class.
If this property is false, only the IParserProvider<TSelf> interface will be implemented.
The default behavior is to generate an implementation of the IParser<TSelf> interface methods unless this property is explicitly set to false. However, if the class is a subcommand (it implements the ICommand interface and has the CommandAttribute attribute), the default is to not implement the IParser<TSelf> interface unless this property is explicitly set to true.