Version 3.3.1.2

WeakGenericCollectionFormatter class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class WeakGenericCollectionFormatter : WeakBaseFormatter, IFormatter
Inheritance

Constructors

WeakGenericCollectionFormatter(Type, Type)
public WeakGenericCollectionFormatter(Type collectionType, Type elementType)
Parameters
System.Type collectionType

System.Type elementType

Methods

DeserializeImplementation(ref Object, IDataReader)
Provides the actual implementation for deserializing a value of type .
protected override void DeserializeImplementation(ref object value, IDataReader reader)
Parameters
System.Object value

The uninitialized value to serialize into. This value will have been created earlier using GetUninitializedObject().

Sirenix.Serialization.IDataReader reader

The reader to deserialize with.

GetUninitializedObject()
Gets a new object of type .
protected override object GetUninitializedObject()
Returns
System.Object

A new object of type .

SerializeImplementation(ref Object, IDataWriter)
Provides the actual implementation for serializing a value of type .
protected override void SerializeImplementation(ref object value, IDataWriter writer)
Parameters
System.Object value

The value to serialize.

Sirenix.Serialization.IDataWriter writer

The writer to serialize with.