StructTypeConverter<T>.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Method

Converts the specified object to the object of given type subject to context and culture information.

Namespace: DevExpress.ExpressApp.Xpo.Utils

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

Syntax

public override object ConvertTo(
    ITypeDescriptorContext context,
    CultureInfo culture,
    object value,
    Type destinationType
)

Parameters

Type Name Description
ITypeDescriptorContext context

An ITypeDescriptorContext object that provides a format context.

CultureInfo culture

An CultureInfo object that specifies the current culture.

Object value

An Object to be converted.

Type destinationType

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

Returns

Type Description
Object

An Object that is a converted object.

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