KeyedSortedListSerializer<TKeyedList, TKey, T> Class
Namespace: Stride.Core.Serialization.SerializersAssembly: Stride.Core.dll
System.Object → DataSerializer → DataSerializer<TKeyedList> →
KeyedSortedListSerializer<TKeyedList, TKey, T>
Derived from KeyedSortedListSerializer<TKeyedList, TKey, T>:
public class KeyedSortedListSerializer<TKeyedList, TKey, T> : DataSerializer<TKeyedList>, IDataSerializerGenericInstantiation where TKeyedList : KeyedSortedList<TKey, T>
Type Parameters
Name | Description |
---|---|
TKeyedList | |
TKey | |
T |
Name | Description | |
---|---|---|
Methods | ||
EnumerateGenericInstantiations(SerializerSelector, IList<Type>) | ||
Initialize(SerializerSelector) | Initializes the specified serializer. |
|
PreSerialize(ref TKeyedList, ArchiveMode, SerializationStream) | ||
Serialize(ref TKeyedList, ArchiveMode, SerializationStream) | Serializes or deserializes the given object |
Methods
EnumerateGenericInstantiations(SerializerSelector, IList<Type>)
public void EnumerateGenericInstantiations(SerializerSelector serializerSelector, IList<Type> genericInstantiations)
Parameters
Type | Name | Description |
---|---|---|
SerializerSelector | serializerSelector | |
System.Collections.Generic.IList<System.Type> | genericInstantiations |
Initialize(SerializerSelector)
Initializes the specified serializer.
public override void Initialize(SerializerSelector serializerSelector)
Parameters
Type | Name | Description |
---|---|---|
SerializerSelector | serializerSelector | The serializer. |
Overrides
Remarks
This method should be thread-safe and OK to call multiple times.
PreSerialize(ref TKeyedList, ArchiveMode, SerializationStream)
public override void PreSerialize(ref TKeyedList obj, ArchiveMode mode, SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
TKeyedList | obj | |
ArchiveMode | mode | |
SerializationStream | stream |
Overrides
Stride.Core.Serialization.DataSerializer<TKeyedList>.PreSerialize(TKeyedList, Stride.Core.Serialization.ArchiveMode, Stride.Core.Serialization.SerializationStream)
Serialize(ref TKeyedList, ArchiveMode, SerializationStream)
Serializes or deserializes the given object obj
.
public override void Serialize(ref TKeyedList obj, ArchiveMode mode, SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
TKeyedList | obj | |
ArchiveMode | mode | The serialization mode. |
SerializationStream | stream | The stream to serialize or deserialize to. |
Overrides
Stride.Core.Serialization.DataSerializer<TKeyedList>.Serialize(TKeyedList, Stride.Core.Serialization.ArchiveMode, Stride.Core.Serialization.SerializationStream)