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 , 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 IParserTSelf interface on the class.
If this property is , only the IParserProviderTSelf interface will be implemented.
The default behavior is to generate an implementation of the IParserTSelf interface methods unless this property is explicitly set to . However, if the class is a subcommand (it implements the ICommand interface and has the CommandAttribute attribute), the default is to not implement the IParserTSelf interface unless this property is explicitly set to .