Custom Element Serialization [Writable]
  • Updated on 09 Dec 2013
  • 1 minute to read
  • Print
  • Dark
    Light

Custom Element Serialization [Writable]

  • Print
  • Dark
    Light

Serialization of elements (like flow steps and page elements) is handled by a mechanism called Writable .

This mechanism has two ways of being accessed:

The simple mechanism is to use the [Writable] and [WritableValue] attributes to mark which elements need to be serialized.

Below is example of using attributes to specify serialization.

 [Writable]
public class BaseSegmentStep;
{
   [WritableValue]
   string outputSegment;
}

Each field or property that needs to be stored must be marked with a [WritableValue] attribute.

Was this article helpful?