StructTypeConverter<T>.CanConvertFrom(ITypeDescriptorContext, Type) Method

Indicates whether or not this converter can convert an object of the specified type to the type of this converter.

Namespace: DevExpress.ExpressApp.Xpo.Utils

Assembly: DevExpress.ExpressApp.Xpo.v18.2.dll

Declaration

public override bool CanConvertFrom(
    ITypeDescriptorContext context,
    Type sourceType
)
Public Overrides Function CanConvertFrom(
    context As ITypeDescriptorContext,
    sourceType As Type
) As Boolean

Parameters

Type Name Description
ITypeDescriptorContext context

An ITypeDescriptorContext object that provides a format context.

Type sourceType

A Type object that is the type to be converted from.

Returns

Type Description
Boolean

true, if the certain type can be convert to the string; otherwise, false.

See the default implementation of this method in the StructTypeConverter<T> class description.

See Also