Skip to main content
A newer version of this page is available. .

ICustomObjectConverter.ToString(Type, Object) Method

When implemented, serializes the specified object of the specified type.

Namespace: DevExpress.Utils.Serializing.Helpers

Assembly: DevExpress.Data.v18.2.dll

Declaration

string ToString(
    Type type,
    object obj
)

Parameters

Name Type Description
type Type

A Type that specifies the type of the object to serialize.

obj Object

The object to serialize.

Returns

Type Description
String

A String that represents the serialized object.

Remarks

The ICustomObjectConverter.FromString method must be implemented to deserialize objects.

For all types the converter can process, the ICustomObjectConverter.CanConvert method must return true; for other types, false.

See Also