Skip to main content

ICustomObjectConverter.FromString(Type, String) Method

When implemented, deserializes an object of the specified type from the specified string.

Namespace: DevExpress.Utils.Serializing.Helpers

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

object FromString(
    Type type,
    string str
)

Parameters

Name Type Description
type Type

A Type that specifies the type of object to deserialize.

str String

A String that represents the serialized object.

Returns

Type Description
Object

A deserialized object.

Remarks

The ICustomObjectConverter.ToString method must be implemented to serialize objects.

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

See Also