Interface IJsonSerialize
- Namespace
- CADability
- Assembly
- CADability.dll
Implemented by all objects which can be saved to and loaded from CADability's JSON based ".cdb" files by JsonSerialize: GetObjectData(IJsonWriteData) writes the properties of the object to the provided IJsonWriteData, SetObjectData(IJsonReadData) reads them back. The type needs a parameterless constructor (it may be non-public), which is called before SetObjectData(IJsonReadData); objects which need a second pass after all objects have been read also implement IJsonSerializeDone.
public interface IJsonSerialize
Methods
GetObjectData(IJsonWriteData)
void GetObjectData(IJsonWriteData data)
Parameters
dataIJsonWriteData
SetObjectData(IJsonReadData)
void SetObjectData(IJsonReadData data)
Parameters
dataIJsonReadData