Table of Contents

Class DefaultDataTypeTextSerializer

Namespace
CMS.DataEngine
Assembly
CMS.DataEngine.dll

Class responsible for serialization and deserialization of DataType values to text. Serializer is used as a fallback when no serializer is set for given data type.

public class DefaultDataTypeTextSerializer : IDataTypeTextSerializer
Inheritance
object
DefaultDataTypeTextSerializer
Implements
Extension Methods

Constructors

DefaultDataTypeTextSerializer(string)

Creates an instance of DefaultDataTypeTextSerializer.

public DefaultDataTypeTextSerializer(string fieldType)

Parameters

fieldType string

Data type of the values the serializer will be used for.

See Also

Methods

Deserialize(string)

Deserialize text into desired object.

public object Deserialize(string text)

Parameters

text string

Text to be deserialized.

Returns

object

Serialize(object)

Serializes value into text.

public string Serialize(object value)

Parameters

value object

Value to be serialized.

Returns

string

See Also

ConvertToSystemType(TypeEnum, string, object, CultureInfo, bool)