Click or drag to resize

ITypeConversionTryConvert Method

Converts the given value to the given type. A return value indicates whether the operation succeeded.

Namespace:  TB.ComponentModel
Assembly:  UniversalTypeConverter (in UniversalTypeConverter.dll) Version: 2.0.0
Syntax
C#
bool TryConvert(
	Object value,
	Type destinationType,
	out Object result,
	ConversionArgs args
)

Parameters

value
Type: SystemObject
The value which is converted.
destinationType
Type: SystemType
The type to which the given value is converted.
result
Type: SystemObject
An instance of type destinationType whose value is equivalent to the given value if the operation succeeded.
args
Type: TB.ComponentModelConversionArgs
Arguments for conversion.

Return Value

Type: Boolean
true, if value was converted successfully; otherwise, false.
See Also