Version 2.1.0.0

IFormatter<T> interface

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public interface IFormatter<T> : IFormatter
Serializes and deserializes a given type T.

Type Parameters

T

The type which can be serialized and deserialized by the formatter.

Methods

Deserialize(IDataReader)
Deserializes a value of type using a specified IDataReader.
T Deserialize(IDataReader reader)
Parameters
IDataReader reader

The reader to use.

Returns
T

The deserialized value.

Serialize(T, IDataWriter)
Serializes a value of type using a specified IDataWriter.
void Serialize(T value, IDataWriter writer)
Parameters
T value

The value to serialize.

IDataWriter writer

The writer to use.

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.