Serializer.serializeBase

Serializes the base class(es) of an instance.

This method is used when performing custom serialization of a given type. If this method is not called when performing custom serialization none of the instance's base classes will be serialized.

class Serializer
void
serializeBase
(
T
)
()

Parameters

value T

the instance which base class(es) should be serialized, usually

this

Throws

SerializationException if an error occurs

Examples

class Base {}
class Sub : Base
{
    void toData (Serializer serializer, Serializer.Data key)
    {
        // perform serialization
        serializer.serializeBase(this);
    }
}

Meta