Version 2.1.0.0

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

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.