TypeConverter.CanConvertFrom(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When implemented in a derived class, returns a Boolean value that indicates whether or not the derived type converter can convert sourceType
to its target type.
public virtual bool CanConvertFrom (Type sourceType);
abstract member CanConvertFrom : Type -> bool
override this.CanConvertFrom : Type -> bool
Parameters
- sourceType
- Type
The type to check.