ArgumentValidationAttributeIsValidPreConversion Method

Determines if the argument's raw string value is valid.

Definition

Namespace: Ookii.CommandLine.Validation
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 5.0.0+724ca9b7fa5edc075ec2ae65044e61b0d494fd1c
C#
public virtual bool IsValidPreConversion(
	CommandLineArgument argument,
	ReadOnlyMemory<char> value
)

Parameters

argument  CommandLineArgument
The argument being validated.
value  ReadOnlyMemoryChar
A string memory region containing the raw argument value as it was provided on the command line.

Return Value

Boolean
if the value is valid; otherwise, .

Remarks

The default implementation always returns .

See Also