4 using System.Reflection;
6 namespace SiliconStudio.Core.Serialization.Serializers
14 stream.Write(obj.Name);
15 stream.Write(obj.OwnerType.AssemblyQualifiedName);
19 var parameterName = stream.ReadString();
20 var ownerTypeName = stream.ReadString();
21 var ownerType = Type.GetType(ownerTypeName);
23 obj = (T)ownerType.GetTypeInfo().GetDeclaredField(parameterName).GetValue(null);
Base class for implementation of SerializationStream.
Describes how to serialize and deserialize an object without knowing its type. Used as a common base ...
ArchiveMode
Enumerates the different mode of serialization (either serialization or deserialization).
override void Serialize(ref T obj, ArchiveMode mode, SerializationStream stream)
A class that represents a tag propety.