API Reference
Class
HelpSyntaxParameterFluent
The fluent methods of HelpSyntaxParameter, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- Object
- HelpSyntaxParameterFluent
Methods
public static HelpSyntaxParameter WithPositional(HelpSyntaxParameter helpSyntaxParameter, Boolean value = true) #Returns:
HelpSyntaxParameterSets HelpSyntaxParameter.Positional: Whether its name may be left out (a position is given).
Parameters
- helpSyntaxParameter ConsoleMonster.Help.HelpSyntaxParameter
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static HelpSyntaxParameter WithRequired(HelpSyntaxParameter helpSyntaxParameter, Boolean value = true) #Returns:
HelpSyntaxParameterSets HelpSyntaxParameter.Required: Whether it is required.
Parameters
- helpSyntaxParameter ConsoleMonster.Help.HelpSyntaxParameter
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static HelpSyntaxParameter WithType(HelpSyntaxParameter helpSyntaxParameter, String? value) #Returns:
HelpSyntaxParameterSets HelpSyntaxParameter.Type: The value type (for example string[]), or null for a switch.
Parameters
- helpSyntaxParameter ConsoleMonster.Help.HelpSyntaxParameter
- The instance.
- value System.String?
- The value.
Returns
The same instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?