CanConvertFrom Method
CanConvertFrom(ITypeDescriptorContext, Type)
Returns true if this type converter can convert from a given type.
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.ITypeDescriptorContext | context | The ITypeDescriptorContext for this call. |
System.Type | sourceType | The Type being queried for support. |
Returns
Type | Description |
---|---|
System.Boolean | bool - True if this converter can convert from the provided type, false if not. |
Overrides
System.ComponentModel.TypeConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Type)