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
Returns
- object
Deserialized Object
Deserialize<T>(string)
Deserialize a string to an Object of supplied type
public T Deserialize<T>(string data)
Parameters
data
stringString 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
objectObject 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
objectObject to serialize
formatted
boolBoolean indicating whether to format the results or not
Returns
- string
Object serialized to a string