Version 3.3.1.2

WeakSerializableFormatter class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class WeakSerializableFormatter : WeakBaseFormatter, IFormatter
Inheritance

Constructors

WeakSerializableFormatter(Type)
public WeakSerializableFormatter(Type serializedType)
Parameters
System.Type serializedType

Methods

DeserializeImplementation(ref Object, IDataReader)
Provides the actual implementation for deserializing a value of type .
protected override void DeserializeImplementation(ref object value, IDataReader reader)
Parameters
System.Object value

The uninitialized value to serialize into. This value will have been created earlier using GetUninitializedObject().

Sirenix.Serialization.IDataReader reader

The reader to deserialize with.

GetUninitializedObject()
Get an uninitialized object of type . WARNING: If you override this and return null, the object's ID will not be automatically registered and its OnDeserializing callbacks will not be automatically called, before deserialization begins. You will have to call and immediately after creating the object yourself during deserialization.
protected override object GetUninitializedObject()
Returns
System.Object

An uninitialized object of type .

SerializeImplementation(ref Object, IDataWriter)
Provides the actual implementation for serializing a value of type .
protected override void SerializeImplementation(ref object value, IDataWriter writer)
Parameters
System.Object value

The value to serialize.

Sirenix.Serialization.IDataWriter writer

The writer to serialize with.