KeyValuePairConverterTKey, TValueConvert(String, CultureInfo, CommandLineArgument) Method

Converts a string to a KeyValuePairTKey, TValue.

Definition

Namespace: Ookii.CommandLine.Conversion
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public override Object? Convert(
	string value,
	CultureInfo culture,
	CommandLineArgument argument
)

Parameters

value  String
The string to convert.
culture  CultureInfo
The culture to use for the conversion.
argument  CommandLineArgument
The CommandLineArgument that will use the converted value.

Return Value

Object
An object representing the converted value.

Exceptions

ArgumentNullExceptionvalue or culture or argument is .
FormatException The value was not in a correct format for the target type.
CommandLineArgumentException The value was not in a correct format for the target type.

See Also