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