Documentation for the C# command-line option parsing library

OptionDefinition.ConvertValue Method 

Try to convert a given value to the value that this option supports

public object ConvertValue(
   string value
);

Parameters

value
The value given

Return Value

The converted value or null if the value could not be converted

Exceptions

Exception Type Condition
InvalidValueException Thrown if the value could not be converted

See Also

OptionDefinition Class | CommandLine.OptParse Namespace