Interface IOptionValidator
Provides validation for a Command
Namespace: McMaster.Extensions.CommandLineUtils.Validation
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public interface IOptionValidator
Methods
| Improve this Doc View SourceGetValidationResult(CommandOption, ValidationContext)
Validates the values specified for Values.
Declaration
ValidationResult GetValidationResult(CommandOption option, ValidationContext context)
Parameters
Type | Name | Description |
---|---|---|
Command |
option | The option. |
System. |
context | The validation context. |
Returns
Type | Description |
---|---|
System. |
The validation result. Returns System. |