Class ValidationBuilder<T>
Default implementation of IOptionValidationBuilder<T> and IArgumentValidationBuilder<T>.
Implements
Inherited Members
Namespace: McMaster.Extensions.CommandLineUtils.Validation
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public class ValidationBuilder<T> : ValidationBuilder, IArgumentValidationBuilder<T>, IArgumentValidationBuilder, IOptionValidationBuilder<T>, IOptionValidationBuilder, IValidationBuilder<T>, IValidationBuilderType Parameters
| Name | Description | 
|---|---|
| T | 
Constructors
| Improve this Doc View SourceValidationBuilder(CommandArgument<T>)
Creates a new instance of ValidationBuilder for a given CommandArgument<T>.
Declaration
public ValidationBuilder(CommandArgument<T> argument)Parameters
| Type | Name | Description | 
|---|---|---|
| CommandArgument<T> | argument | The argument. | 
ValidationBuilder(CommandOption<T>)
Creates a new instance of ValidationBuilder for a given CommandOption<T>.
Declaration
public ValidationBuilder(CommandOption<T> option)Parameters
| Type | Name | Description | 
|---|---|---|
| CommandOption<T> | option | The option. |