Table of Contents

Class JsonVersion

Namespace
CADability
Assembly
CADability.dll

Attribute for classes and structs serialized by JsonSerialize: version is the format version of the type, which is available as Version when the object is read, so that SetObjectData(IJsonReadData) can handle data written by older versions; serializeAsStruct makes the object be written inline as a sequence of values (the type then needs a constructor taking an IJsonReadStruct) instead of as a referenced object.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct)]
public class JsonVersion : Attribute
Inheritance
JsonVersion
Inherited Members

Constructors

JsonVersion()

public JsonVersion()

JsonVersion(int)

public JsonVersion(int version)

Parameters

version int

JsonVersion(int, bool)

public JsonVersion(int version, bool serializeAsStruct)

Parameters

version int
serializeAsStruct bool

Fields

serializeAsStruct

public bool serializeAsStruct

Field Value

bool

version

public int version

Field Value

int