KeyValuePairConverterTKey, TValueConvert(ReadOnlySpanChar, CultureInfo, CommandLineArgument) Method

Converts a string span to a KeyValuePairTKey, TValue.

Definition

Namespace: Ookii.CommandLine.Conversion
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.0.0+bb7ed9a8fdfd1cb21824750a8cf508863ad15086
C#
public override Object? Convert(
	ReadOnlySpan<char> value,
	CultureInfo culture,
	CommandLineArgument argument
)

Parameters

value  ReadOnlySpanChar
The ReadOnlySpanT containing 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