Version 3.3.0.1

EmptyTypeFormatter<T> class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public class EmptyTypeFormatter<T> : EasyBaseFormatter<T>, IFormatter<T>, IFormatter
A formatter for empty types. It writes no data, and skips all data that is to be read, deserializing a "default" value.
Inheritance

Type Parameters

T

Constructors

EmptyTypeFormatter()
public EmptyTypeFormatter()

Methods

ReadDataEntry(ref T, String, EntryType, IDataReader)
Skips the entry to read.
protected override void ReadDataEntry(ref T value, string entryName, EntryType entryType, IDataReader reader)
Parameters
T value

System.String entryName

EntryType entryType

Sirenix.Serialization.IDataReader reader

WriteDataEntries(ref T, IDataWriter)
Does nothing at all.
protected override void WriteDataEntries(ref T value, IDataWriter writer)
Parameters
T value

Sirenix.Serialization.IDataWriter writer