Table of Contents

Class DataConverter

Namespace
DurableTask.Core.Serializing
Assembly
DurableTask.Core.dll

Abstract class for serializing and deserializing data

public abstract class DataConverter
Inheritance
DataConverter
Derived
Inherited Members

Constructors

DataConverter()

protected DataConverter()

Methods

Deserialize(string, Type)

Deserialize a string to an Object of supplied type

public abstract object Deserialize(string data, Type objectType)

Parameters

data string

String data of the Object to deserialize

objectType Type

Type to deserialize to

Returns

object

Deserialized Object

Deserialize<T>(string)

Deserialize a string to an Object of supplied type

public T Deserialize<T>(string data)

Parameters

data string

String data of the Object to deserialize

Returns

T

Deserialized Object

Type Parameters

T

Type to deserialize to

Serialize(object)

Serialize an Object to string with default formatting

public abstract string Serialize(object value)

Parameters

value object

Object to serialize

Returns

string

Object serialized to a string

Serialize(object, bool)

Serialize an Object to string with supplied formatting

public abstract string Serialize(object value, bool formatted)

Parameters

value object

Object to serialize

formatted bool

Boolean indicating whether to format the results or not

Returns

string

Object serialized to a string