KGy SOFT

BinaryTypeConverterCanConvertFrom Method (ITypeDescriptorContext, Type)

KGy SOFT Core Libraries Help
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0
Syntax

public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)

Parameters

context
Type: System.ComponentModelITypeDescriptorContext
In this type converter this parameter is ignored.
sourceType
Type: SystemType
A Type that represents the type you want to convert from. This type converter supports String and byte[] types.

Return Value

Type: Boolean
 if this converter can perform the conversion; otherwise, .
See Also

Reference