API Reference
Class
HelpSyntaxParameter
A parameter as it appears in a syntax line.
Inheritance
- Object
- HelpSyntaxParameter
Usage
Explore 17 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Property HelpSyntax.Parameters
- Extension method HelpSyntaxParameter.WithPositional
- Extension method HelpSyntaxParameter.WithRequired
- Extension method HelpSyntaxParameter.WithType
- Method HelpSyntaxParameterFluent.WithPositional
- Method HelpSyntaxParameterFluent.WithRequired
- Method HelpSyntaxParameterFluent.WithType
Accepted by parameters 10
- Extension method HelpSyntax.AddParameter
- Extension method HelpSyntax.AddParameters
- Method HelpSyntaxFluent.AddParameter
- Method HelpSyntaxFluent.AddParameters
- Extension method HelpSyntaxParameter.WithPositional
- Extension method HelpSyntaxParameter.WithRequired
- Extension method HelpSyntaxParameter.WithType
- Method HelpSyntaxParameterFluent.WithPositional
- Method HelpSyntaxParameterFluent.WithRequired
- Method HelpSyntaxParameterFluent.WithType
Constructors
public HelpSyntaxParameter(String name) #Creates a syntax parameter.
Parameters
- name System.String
- The name without the dash.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
Extension 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.