InvariantObjectCloneSerializer<T> Class
Namespace: Stride.Core.Assets.SerializersAssembly: Stride.Core.Assets.dll
A fake serializer used for cloning invariant objects. Instead of actually cloning the invariant object, this serializer store it in a list of the context and restore when deserializing.
Derived from InvariantObjectCloneSerializer<T>:
[DataSerializerGlobal(typeof(InvariantObjectCloneSerializer<string>), null, DataSerializerGenericMode.None, false, false, Profile = "AssetClone")]
public class InvariantObjectCloneSerializer<T> : DataSerializer<T>
Type Parameters
Name | Description |
---|---|
T |
Name | Description | |
---|---|---|
Methods | ||
Serialize(ref T, ArchiveMode, SerializationStream) |
Methods
Serialize(ref T, ArchiveMode, SerializationStream)
public override void Serialize(ref T obj, ArchiveMode mode, SerializationStream stream)
Parameters
Type | Name | Description |
---|---|---|
T | obj | |
ArchiveMode | mode | |
SerializationStream | stream |
Overrides
Stride.Core.Serialization.DataSerializer<T>.Serialize(T, Stride.Core.Serialization.ArchiveMode, Stride.Core.Serialization.SerializationStream)