AnyTypeConverter.CanConvertFrom Method

Definition

Overloads

CanConvertFrom(Object)

Determines if the converter can convert the sourceValue parameter to the Any type.

CanConvertFrom(Object, Type)

Determines if the converter can convert the sourceValue parameter to the destinationType parameter.

CanConvertFrom(Object)

Determines if the converter can convert the sourceValue parameter to the Any type.

public static bool CanConvertFrom (dynamic sourceValue);
static member CanConvertFrom : obj -> bool
Public Shared Function CanConvertFrom (sourceValue As Object) As Boolean

Parameters

sourceValue
Object

the Object instance to check if it can be converted to the Any type.

Returns

true if the instance could be converted to a Any type, otherwise false

Applies to

CanConvertFrom(Object, Type)

Determines if the converter can convert the sourceValue parameter to the destinationType parameter.

public override bool CanConvertFrom (object sourceValue, Type destinationType);
override this.CanConvertFrom : obj * Type -> bool
Public Overrides Function CanConvertFrom (sourceValue As Object, destinationType As Type) As Boolean

Parameters

sourceValue
Object

the Object to convert from

destinationType
Type

the Type to convert to

Returns

true if the converter can convert the sourceValue parameter to the destinationType parameter, otherwise false.

Applies to