Click or drag to resize

ObjectExtensionCanConvert 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 CanConvert(
	this Object value,
	Type destinationType,
	CultureInfo culture = null
)

Parameters

value
Type: SystemObject
destinationType
Type: SystemType
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