Version 3.3.0.1

ComplexTypeSerializer<T> class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public class ComplexTypeSerializer<T> : Serializer<T>
Serializer for all complex types; IE, types which are not primitives as determined by the IsPrimitiveType(Type) method.
Inheritance
See Also

Type Parameters

T

The type which the ComplexTypeSerializer<T> can serialize and deserialize.

Constructors

ComplexTypeSerializer()
public ComplexTypeSerializer()

Methods

ReadValue(IDataReader)
Reads a value of type .
public override T ReadValue(IDataReader reader)
Parameters
Sirenix.Serialization.IDataReader reader

The reader to use.

Returns
T

The value which has been read.

WriteValue(String, T, IDataWriter)
Writes a value of type .
public override void WriteValue(string name, T value, IDataWriter writer)
Parameters
System.String name

The name of the value to write.

T value

The value to write.

Sirenix.Serialization.IDataWriter writer

The writer to use.