Click or drag to resize

ObjectExtension.TryConvert 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: System.Object
destinationType
Type: System.Type
result
Type: System.Object
culture (Optional)
Type: System.Globalization.CultureInfo

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