ICustomObjectConverter.ToString(Type, Object) Method

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

Namespace: DevExpress.Utils.Serializing.Helpers

Assembly: DevExpress.Data.v20.1.dll

Declaration

string ToString(
    Type type,
    object obj
)
Function ToString(
    type As Type,
    obj As Object
) As String

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