KeyValuePairConverterTKey, TValueCanConvertTo Method (ITypeDescriptorContext, Type) |
Returns whether this converter can convert the object to the specified type, using the specified context.
Namespace:
Ookii.CommandLine
Assembly:
Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 2.3.0
Syntaxpublic override bool CanConvertTo(
ITypeDescriptorContext context,
Type destinationType
)
Public Overrides Function CanConvertTo (
context As ITypeDescriptorContext,
destinationType As Type
) As Boolean
Dim instance As KeyValuePairConverter
Dim context As ITypeDescriptorContext
Dim destinationType As Type
Dim returnValue As Boolean
returnValue = instance.CanConvertTo(context,
destinationType)
public:
virtual bool CanConvertTo(
ITypeDescriptorContext^ context,
Type^ destinationType
) override
Parameters
- context
- Type: System.ComponentModelITypeDescriptorContext
An ITypeDescriptorContext that provides a format context. - destinationType
- Type: SystemType
A Type that represents the type you want to convert to.
Return Value
Type:
Boolean if this converter can perform the conversion; otherwise,
.
See Also