Skip to main content
.NET 6.0+

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.v23.2.dll

NuGet Package: DevExpress.ExpressApp.Xpo

Declaration

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

Parameters

Name Type Description
context ITypeDescriptorContext

An ITypeDescriptorContext object that provides a format context.

culture CultureInfo

An CultureInfo object that specifies the current culture.

value Object

An Object to be converted.

destinationType Type

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

Returns

Type Description
Object

An Object that is a converted object.

Remarks

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

See Also