Click or drag to resize

ObjectExtensionTryConvert Method

Note: This API is now obsolete.

For backward compatibility only. Use IsConvertibleTo(Object, Type, CultureInfo) instead.

Namespace:  TB.ComponentModel
Assembly:  UniversalTypeConverter (in UniversalTypeConverter.dll) Version: 2.0.0
Syntax
C#
[ObsoleteAttribute("Use IsConvertibleTo() instead.")]
public static bool TryConvert(
	this Object value,
	Type destinationType,
	out Object result,
	CultureInfo culture = null
)

Parameters

value
Type: SystemObject
destinationType
Type: SystemType
result
Type: SystemObject
culture (Optional)
Type: System.GlobalizationCultureInfo

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also