Click or drag to resize

KeyValuePairConverterTKey, TValue Constructor (String, Boolean, Type, Type, String)

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.4.0
Syntax
public KeyValuePairConverter(
	string argumentName,
	bool allowNullValues,
	Type? keyConverterType,
	Type? valueConverterType,
	string? separator
)

Parameters

argumentName
Type: SystemString
The name of the argument that this converter is for.
allowNullValues
Type: SystemBoolean
Indicates whether the value type accepts values.
keyConverterType
Type: SystemType
Provides an optional TypeConverter type to use to convert keys. If , the default converter for TKey is used.
valueConverterType
Type: SystemType
Provides an optional TypeConverter type to use to convert values. If , the default converter for TValue is used.
separator
Type: SystemString
Provides an optional custom key/value separator. If , the value of DefaultSeparator is used.
Exceptions
ExceptionCondition
ArgumentNullExceptionargumentName is .
ArgumentExceptionseparator is an empty string.
NotSupportedExceptionEither the key or value TypeConverter does not support converting from a string.
See Also