Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Package: DevExpress.ExpressApp.Xpo

#Declaration

public override bool CanConvertFrom(
    ITypeDescriptorContext context,
    Type sourceType
)

#Parameters

Name Type Description
context ITypeDescriptorContext

An ITypeDescriptorContext object that provides a format context.

sourceType Type

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.

#Remarks

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

See Also