Class CommandSettingsPropertyTypeProcessor<TProperty>
- Namespace
- Ploch.CommandLine.Spectre.Commands
- Assembly
- Ploch.CommandLine.Spectre.dll
Base class for processors that handle command settings properties of a specific type.
public abstract class CommandSettingsPropertyTypeProcessor<TProperty> : ICommandSettingsProcessor
Type Parameters
TPropertyThe property type this processor handles.
- Inheritance
-
CommandSettingsPropertyTypeProcessor<TProperty>
- Implements
- Derived
- Inherited Members
Properties
- Properties
Gets the matched properties, keyed by property name, collected during ProcessArguments(CommandSettings).
- RequiredAttributes
Gets the attribute types a property must carry to be processed. An empty array means no attributes are required.
- SupportedPropertyType
Gets the property type handled by this processor.
Methods
- DoProcessArguments()
Processes the properties collected in Properties.
- GetAttribute<TAttribute>(PropertyInfo, bool)
Retrieves a required attribute from a property.
- ProcessArguments(CommandSettings)
Collects every property of type
TPropertythat carries all RequiredAttributes, then invokes DoProcessArguments().