KGy SOFT

BinaryTypeConverterConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

KGy SOFT Core Libraries Help
Converts the given value object to the specified type.

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

public override Object ConvertTo(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value,
	Type destinationType
)

Parameters

context
Type: System.ComponentModelITypeDescriptorContext
An ITypeDescriptorContext that provides a format context. In this converter this parameter is ignored.
culture
Type: System.GlobalizationCultureInfo
A CultureInfo. In this converter this parameter is ignored.
value
Type: SystemObject
The Object to convert.
destinationType
Type: SystemType
A Type that represents the type you want to convert to. This type converter supports String and byte[] types.

Return Value

Type: Object
An Object that represents the converted value.
See Also

Reference