Namespace: | Sirenix.Serialization |
Assembly: | Sirenix.Serialization |
public sealed class NullableFormatter<T> : BaseFormatter<T? >, IFormatter<T? >, IFormatter where T : struct
The type that is nullable.
public NullableFormatter()
protected override void DeserializeImplementation(ref T? value, IDataReader reader)
System.Nullable<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 void SerializeImplementation(ref T? value, IDataWriter writer)
System.Nullable<T> | value | The value to serialize. |
Sirenix.Serialization.IDataWriter | writer | The writer to serialize with. |