Skip to main content

ICustomObjectConverter.CanConvert(Type) Method

When implemented, returns whether the converter can serialize/deserialize objects of the specified type.

Namespace: DevExpress.Utils.Serializing.Helpers

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data

Declaration

bool CanConvert(
    Type type
)

Parameters

Name Type Description
type Type

A Type that specifies the type to check.

Returns

Type Description
Boolean

true if the converter can serialize/deserialize objects of the specified type; otherwise, false.

Remarks

The ICustomObjectConverter.ToString and ICustomObjectConverter.FromString methods must be implemented to serialize and deserialize objects, respectively.

See Also