Click or drag to resize

TypeConverterCanConvert Method

Determines whether the given value can be converted to the specified type.

Namespace:  TB.ComponentModel
Assembly:  UniversalTypeConverter (in UniversalTypeConverter.dll) Version: 2.0.0
Syntax
C#
public bool CanConvert(
	Object value,
	Type destinationType,
	CultureInfo culture = null
)

Parameters

value
Type: SystemObject
The value to test.
destinationType
Type: SystemType
The type to test.
culture (Optional)
Type: System.GlobalizationCultureInfo
The culture to use. If not given or null, the DefaultCulture is used.

Return Value

Type: Boolean
true if value can be converted to destinationType; otherwise, false.
See Also