[]
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Type | Name | Description |
---|---|---|
ITypeDescriptorContext | context | An ITypeDescriptorContext that provides a format context. |
Type | sourceType | A Typethat represents the type you want to convert from. |
Type | Description |
---|---|
bool | true if this converter can perform the conversion; otherwise, false. |