Interface IOptionValidator
Provides validation for a CommandOption.
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 | 
|---|---|---|
| CommandOption | option | The option.  | 
      
| System.ComponentModel.DataAnnotations.ValidationContext | context | The validation context.  | 
      
Returns
| Type | Description | 
|---|---|
| System.ComponentModel.DataAnnotations.ValidationResult | The validation result. Returns System.ComponentModel.DataAnnotations.ValidationResult.Success if the values pass validation.  |