TypeConverter.CanConvertFrom Method (Type)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns whether the type converter can convert an object from the specified type to the type of this converter.
Assembly: System (in System.dll)
Parameters
- sourceType
- Type: System.Type
The type you want to convert from.
Return Value
Type: System.Booleantrue if this converter can perform the conversion; otherwise, false.
Notes to Implementers
The base implementation calls the other signature (CanConvertFrom(ITypeDescriptorContext, Type)) passing a null for context.
Show: