Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public class DelegateFormatter<T> : BaseFormatter<T>, IFormatter<T>, IFormatter where T : class
This formatter can handle anything but delegates for dynamic methods.
public DelegateFormatter()
public DelegateFormatter(Type delegateType)
System.Type | delegateType |
public readonly Type DelegateType
protected override void DeserializeImplementation(ref T value, IDataReader reader)
T | value | The uninitialized value to serialize into. This value will have been created earlier using OdinSerializer.BaseFormatter`1.GetUninitializedObject. |
Sirenix.Serialization.IDataReader | reader | The reader to deserialize with. |
protected override T GetUninitializedObject()
T |
An uninitialized object of type |
protected override void SerializeImplementation(ref T value, IDataWriter writer)
T | value | The value to serialize. |
Sirenix.Serialization.IDataWriter | writer | The writer to serialize with. |