Compartilhar via


DataConverter Class

Definition

Abstraction for serializing and deserializing data that gets passed to and from orchestrators and activities.

public abstract class DataConverter
type DataConverter = class
Public MustInherit Class DataConverter
Inheritance
DataConverter
Derived

Remarks

Implementations of this abstract class are free to use any serialization method. The default implementation uses the JSON serializer from the System.Text.Json namespace. Currently only strings are supported as the serialized representation of data. Byte array payloads and streams are not supported by this abstraction. Note that these methods all accept null values, in which case the return value should also be null.

Constructors

DataConverter()

Methods

Deserialize(String, Type)

Deserializes data into an object of type targetType.

Deserialize<T>(String)

Deserializes data into an object of type T.

Serialize(Object)

Serializes value into a text string.

Applies to