Class CommandParameterAttribute
Specifies metadata for a parameter of a command.
[AttributeUsage(AttributeTargets.Parameter)]
public class CommandParameterAttribute : Attribute
- Inheritance
-
CommandParameterAttribute
- Inherited Members
Constructors
CommandParameterAttribute()
public CommandParameterAttribute()
Properties
Name
Name of the parameter.
public string? Name { get; init; }
Property Value
Remainder
Indicates whether the parameter is parsed as a remainder, meaning that it captures the rest of the input after the command and preceding parameters.
public bool Remainder { get; init; }
Property Value
TypeReaderType
Type reader for the parameter, used to convert the input value to the specified type.
public Type? TypeReaderType { get; init; }