摘要 |
Methods for serializing and deserializing a program object are disclosed. Serialized data may be generated to convey a representation of the program object. The serialized data may include data identifying a class for the program object, and a data type and at least one data value for each data member comprising the program object. The program object may be reconstructed from the serialized data according to a definition of the identified class. A received data member may be reconstructed if the received data type is an expected data type according to the class definition. A received data member may be ignored if the expected data type according to the class definition is a null data type. Default data may be substituted for a received null data member if the expected data type according to the class definition is not a null data type. The received data type may be converted to an expected data type according to the class definition.
|