Click or drag to resize

KeyValuePairConverterTKey, TValue Class

Converts key-value pairs to and from strings using key=value notation.
Inheritance Hierarchy
SystemObject
  System.ComponentModelTypeConverter
    Ookii.CommandLineKeyValuePairConverterTKey, TValue

Namespace:  Ookii.CommandLine
Assembly:  Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntax
public class KeyValuePairConverter<TKey, TValue> : TypeConverter

Type Parameters

TKey
The type of the key.
TValue
The type of the value.

The KeyValuePairConverterTKey, TValue type exposes the following members.

Constructors
  NameDescription
Public methodKeyValuePairConverterTKey, TValue
Initializes a new instance of the KeyValuePairConverterTKey, TValue class
Top
Methods
  NameDescription
Public methodCanConvertFrom(Type) (Inherited from TypeConverter.)
Public methodCanConvertFrom(ITypeDescriptorContext, Type)
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
(Overrides TypeConverterCanConvertFrom(ITypeDescriptorContext, Type).)
Public methodCanConvertTo(Type) (Inherited from TypeConverter.)
Public methodCanConvertTo(ITypeDescriptorContext, Type)
Returns whether this converter can convert the object to the specified type, using the specified context.
(Overrides TypeConverterCanConvertTo(ITypeDescriptorContext, Type).)
Public methodConvertFrom(Object) (Inherited from TypeConverter.)
Public methodConvertFrom(ITypeDescriptorContext, CultureInfo, Object)
Converts the given object to the type of this converter, using the specified context and culture information.
(Overrides TypeConverterConvertFrom(ITypeDescriptorContext, CultureInfo, Object).)
Public methodConvertFromInvariantString(String) (Inherited from TypeConverter.)
Public methodConvertFromInvariantString(ITypeDescriptorContext, String) (Inherited from TypeConverter.)
Public methodConvertFromString(String) (Inherited from TypeConverter.)
Public methodConvertFromString(ITypeDescriptorContext, String) (Inherited from TypeConverter.)
Public methodConvertFromString(ITypeDescriptorContext, CultureInfo, String) (Inherited from TypeConverter.)
Public methodConvertTo(Object, Type) (Inherited from TypeConverter.)
Public methodConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given value object to the specified type, using the specified context and culture information.
(Overrides TypeConverterConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type).)
Public methodConvertToInvariantString(Object) (Inherited from TypeConverter.)
Public methodConvertToInvariantString(ITypeDescriptorContext, Object) (Inherited from TypeConverter.)
Public methodConvertToString(Object) (Inherited from TypeConverter.)
Public methodConvertToString(ITypeDescriptorContext, Object) (Inherited from TypeConverter.)
Public methodConvertToString(ITypeDescriptorContext, CultureInfo, Object) (Inherited from TypeConverter.)
Public methodCreateInstance(IDictionary) (Inherited from TypeConverter.)
Public methodCreateInstance(ITypeDescriptorContext, IDictionary) (Inherited from TypeConverter.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Protected methodGetConvertFromException (Inherited from TypeConverter.)
Protected methodGetConvertToException (Inherited from TypeConverter.)
Public methodGetCreateInstanceSupported (Inherited from TypeConverter.)
Public methodGetCreateInstanceSupported(ITypeDescriptorContext) (Inherited from TypeConverter.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetProperties(Object) (Inherited from TypeConverter.)
Public methodGetProperties(ITypeDescriptorContext, Object) (Inherited from TypeConverter.)
Public methodGetProperties(ITypeDescriptorContext, Object, Attribute) (Inherited from TypeConverter.)
Public methodGetPropertiesSupported (Inherited from TypeConverter.)
Public methodGetPropertiesSupported(ITypeDescriptorContext) (Inherited from TypeConverter.)
Public methodGetStandardValues (Inherited from TypeConverter.)
Public methodGetStandardValues(ITypeDescriptorContext) (Inherited from TypeConverter.)
Public methodGetStandardValuesExclusive (Inherited from TypeConverter.)
Public methodGetStandardValuesExclusive(ITypeDescriptorContext) (Inherited from TypeConverter.)
Public methodGetStandardValuesSupported (Inherited from TypeConverter.)
Public methodGetStandardValuesSupported(ITypeDescriptorContext) (Inherited from TypeConverter.)
Public methodGetType (Inherited from Object.)
Public methodIsValid(Object) (Inherited from TypeConverter.)
Public methodIsValid(ITypeDescriptorContext, Object) (Inherited from TypeConverter.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodSortProperties (Inherited from TypeConverter.)
Public methodToString (Inherited from Object.)
Top
Remarks

This TypeConverter is used for dictionary command line arguments.

See Also