ValidateRangeAttribute.IsValid Method

Determines if the argument's value is in the range.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 3.0.0
C#
public override bool IsValid(
	CommandLineArgument argument,
	Object? value
)

Parameters

argument  CommandLineArgument
The argument being validated.
value  Object
The argument value. If not null, this must be an instance of ArgumentType.

Return Value

Boolean
true if the value is valid; otherwise, false.

See Also