Version 3.3.1.2

TypeFormatter class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class TypeFormatter : MinimalBaseFormatter<Type>, IFormatter<Type>, IFormatter
Formatter for the System.Type type which uses the reader/writer's TwoWaySerializationBinder to bind types.
Inheritance
See Also

Constructors

TypeFormatter()
public TypeFormatter()

Methods

GetUninitializedObject()
Returns null.
protected override Type GetUninitializedObject()
Returns
System.Type

null.

Read(ref Type, IDataReader)
Reads into the specified value using the specified reader.
protected override void Read(ref Type value, IDataReader reader)
Parameters
System.Type value

The value to read into.

Sirenix.Serialization.IDataReader reader

The reader to use.

Write(ref Type, IDataWriter)
Writes from the specified value using the specified writer.
protected override void Write(ref Type value, IDataWriter writer)
Parameters
System.Type value

The value to write from.

Sirenix.Serialization.IDataWriter writer

The writer to use.