Class IArgumentBuilderExtensions
- Namespace
- OneImlx.Terminal.Extensions
- Assembly
- OneImlx.Terminal.dll
The IArgumentBuilder extension methods.
public static class IArgumentBuilderExtensions
- Inheritance
-
IArgumentBuilderExtensions
- Inherited Members
Methods
ValidationAttribute(IArgumentBuilder, Type, params object[]?)
public static IArgumentBuilder ValidationAttribute(this IArgumentBuilder builder, Type validationAttribute, params object[]? args)
Parameters
builder
IArgumentBuilderThe ICommandBuilder.
validationAttribute
TypeThe validation attribute.
args
object[]An array of parameters that match in number, order, and type of constructor parameters for the validation attribute. If args is an empty array or null, the constructor that takes no parameters (the default constructor) is invoked. The constructor must be public.
Returns
- IArgumentBuilder
The configured ICommandBuilder.
ValidationAttribute<TValidation>(IArgumentBuilder, params object[]?)
public static IArgumentBuilder ValidationAttribute<TValidation>(this IArgumentBuilder builder, params object[]? args) where TValidation : ValidationAttribute
Parameters
builder
IArgumentBuilderThe ICommandBuilder.
args
object[]An array of parameters that match in number, order, and type of constructor parameters for the validation attribute. If args is an empty array or null, the constructor that takes no parameters (the default constructor) is invoked. The constructor must be public.
Returns
- IArgumentBuilder
The configured ICommandBuilder.
Type Parameters
TValidation