Interface IJsonSerializeDone
- Namespace
- CADability
- Assembly
- CADability.dll
Implement this interface if your object needs a callback after the first pass of the serialisation/deserialisation. To ensure this interface of your object is called, you must call CADability.JsonSerialize.RegisterForSerializationDoneCallback(CADability.IJsonSerializeDone), in the implementation of GetObjectData(IJsonWriteData) or SetObjectData(IJsonReadData). When the object is beeing read, the properties might be empty objects in the first pass. When SerializationDone(JsonSerialize) is called all properties had their first pass, i.e. SetObjectData(IJsonReadData) has been called on those objects. When the object is beeing written, this mechanism provides the opportunity to modify the object in GetObjectData(IJsonWriteData) and restore it in SerializationDone(JsonSerialize)
public interface IJsonSerializeDone
Methods
SerializationDone(JsonSerialize)
Will be called, when all objects are written or read.
void SerializationDone(JsonSerialize jsonSerialize)
Parameters
jsonSerializeJsonSerialize