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.v20.1.dll

Declaration

object FromString(
    Type type,
    string str
)
Function FromString(
    type As Type,
    str As String
) As Object

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