Table of Contents

Class DictionaryAllSerializer<TDictionary, TKey, TValue>

Namespace
Stride.Core.Serialization.Serializers
Assembly
Stride.Core.dll
public class DictionaryAllSerializer<TDictionary, TKey, TValue> : DataSerializer<TDictionary>, IDataSerializerGenericInstantiation where TDictionary : IDictionary<TKey, TValue>

Type Parameters

TDictionary
TKey
TValue
Inheritance
DataSerializer<TDictionary>
DictionaryAllSerializer<TDictionary, TKey, TValue>
Implements
Inherited Members

Methods

EnumerateGenericInstantiations(SerializerSelector, IList<Type>)

Enumerates required DataSerializer required by this instance of DataSerializer.

public void EnumerateGenericInstantiations(SerializerSelector serializerSelector, IList<Type> genericInstantiations)

Parameters

serializerSelector SerializerSelector
genericInstantiations IList<Type>

Remarks

The code won't be executed, it will only be scanned for typeof() operands by the assembly processor. Null is authorized in enumeration (for now).

Initialize(SerializerSelector)

Initializes the specified serializer.

public override void Initialize(SerializerSelector serializerSelector)

Parameters

serializerSelector SerializerSelector

The serializer.

Remarks

This method should be thread-safe and OK to call multiple times.

PreSerialize(ref TDictionary, ArchiveMode, SerializationStream)

Performs the first step of serialization or deserialization.

public override void PreSerialize(ref TDictionary obj, ArchiveMode mode, SerializationStream stream)

Parameters

obj TDictionary

The object to process.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.

Remarks

Typically, it will instantiate the object if [null], and if it's a collection clear it.

Serialize(ref TDictionary, ArchiveMode, SerializationStream)

Serializes or deserializes the given object obj.

public override void Serialize(ref TDictionary obj, ArchiveMode mode, SerializationStream stream)

Parameters

obj TDictionary

The object to serialize or deserialize.

mode ArchiveMode

The serialization mode.

stream SerializationStream

The stream to serialize or deserialize to.