VersionConverterCanConvertFrom Method
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public override bool CanConvertFrom(
ITypeDescriptorContext? context,
Type sourceType
)
Public Overrides Function CanConvertFrom (
context As ITypeDescriptorContext,
sourceType As Type
) As Boolean
public:
virtual bool CanConvertFrom(
ITypeDescriptorContext^ context,
Type^ sourceType
) override
abstract CanConvertFrom :
context : ITypeDescriptorContext *
sourceType : Type -> bool
override CanConvertFrom :
context : ITypeDescriptorContext *
sourceType : Type -> bool
- context ITypeDescriptorContext
- An ITypeDescriptorContext that provides a format context. In this converter this parameter is ignored.
- sourceType Type
- A Type that represents the type you want to convert from.
This type converter supports String type only.
Boolean if this converter can perform the conversion; otherwise,
.