4 using System.Reflection;
6 namespace SiliconStudio.Core.Serialization.Serializers
14 stream.Write(propertyInfo.DeclaringType.AssemblyQualifiedName);
15 stream.Write(propertyInfo.Name);
19 var declaringTypeName = stream.ReadString();
20 var propertyName = stream.ReadString();
22 var ownerType = Type.GetType(declaringTypeName);
23 if (ownerType == null)
24 throw new InvalidOperationException(
"Could not find the appropriate type.");
26 propertyInfo = ownerType.GetTypeInfo().GetDeclaredProperty(propertyName);
override void Serialize(ref PropertyInfo propertyInfo, ArchiveMode mode, SerializationStream stream)
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).